diff options
author | Christian Clason <c.clason@uni-graz.at> | 2025-01-20 22:45:47 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2025-01-23 09:42:20 +0100 |
commit | 8634bd46b26f28fa26950128b0cc585560bd6a9a (patch) | |
tree | a02b5a77a93183c56b7f51ea8edf95aa98eb952b /runtime/lua/vim | |
parent | 28998e1f8a9cdca27ada7030757b7a47e99ce5b6 (diff) | |
download | rneovim-8634bd46b26f28fa26950128b0cc585560bd6a9a.tar.gz rneovim-8634bd46b26f28fa26950128b0cc585560bd6a9a.tar.bz2 rneovim-8634bd46b26f28fa26950128b0cc585560bd6a9a.zip |
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
https://github.com/vim/vim/commit/72755b3c8e91ec90447969b736f080e0de36003d
Co-authored-by: Peter Benjamin <petermbenjamin@gmail.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 5 | ||||
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 37e6227090..a8f3d18bfa 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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', diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index 31c88c80bd..855893530e 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -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 } }, |