vim-patch:9.1.1042: filetype: just files are not recognized

Problem:  filetype: just files are not recognized
Solution: adjust filetype detection pattern, detect just shebang line,
          include just ftplugin, indent and syntax plugin
          (Peter Benjamin)

closes: vim/vim#16466

72755b3c8e

Co-authored-by: Peter Benjamin <petermbenjamin@gmail.com>
This commit is contained in:
Christian Clason
2025-01-20 22:45:47 +01:00
committed by Christian Clason
parent 28998e1f8a
commit 8634bd46b2
6 changed files with 481 additions and 0 deletions

View File

@@ -661,6 +661,8 @@ local extension = {
jsp = 'jsp',
jl = 'julia',
just = 'just',
Just = 'just',
JUST = 'just',
kl = 'karel',
KL = 'karel',
kdl = 'kdl',
@@ -1650,8 +1652,11 @@ local filename = {
['.vsconfig'] = 'jsonc',
['bun.lock'] = 'jsonc',
['.justfile'] = 'just',
['.Justfile'] = 'just',
['.JUSTFILE'] = 'just',
['justfile'] = 'just',
['Justfile'] = 'just',
['JUSTFILE'] = 'just',
Kconfig = 'kconfig',
['Kconfig.debug'] = 'kconfig',
['Config.in'] = 'kconfig',

View File

@@ -1877,6 +1877,7 @@ local patterns_hashbang = {
ruby = 'ruby',
['node\\(js\\)\\=\\>\\|js\\>'] = { 'javascript', { vim_regex = true } },
['rhino\\>'] = { 'javascript', { vim_regex = true } },
just = 'just',
-- BC calculator
['^bc\\>'] = { 'bc', { vim_regex = true } },
['sed\\>'] = { 'sed', { vim_regex = true } },