mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 06:20:53 +00:00
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:
committed by
Christian Clason
parent
28998e1f8a
commit
8634bd46b2
@@ -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',
|
||||
|
||||
@@ -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 } },
|
||||
|
||||
Reference in New Issue
Block a user