diff options
author | kylo252 <59826753+kylo252@users.noreply.github.com> | 2022-12-20 18:04:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 18:04:47 +0100 |
commit | 45d1b1c6788a5694850361b5ffa95d63eb75b2f5 (patch) | |
tree | 7e9fbab48c1dd67b1efe8f22bac1f8d1c6c09237 /runtime/lua/vim | |
parent | f04087d8ba0623d1946eefe0f71d5f3e92d58c14 (diff) | |
download | rneovim-45d1b1c6788a5694850361b5ffa95d63eb75b2f5.tar.gz rneovim-45d1b1c6788a5694850361b5ffa95d63eb75b2f5.tar.bz2 rneovim-45d1b1c6788a5694850361b5ffa95d63eb75b2f5.zip |
vim-patch:9.0.1082: some jsonc files are not recognized (#21483)
Problem: Some jsonc files are not recognized.
Solution: Add patterns for jsonc and move some from json to jsonc.
(closes vim/vim#11711)
https://github.com/vim/vim/commit/104b2ff4d0ec9248ba0b979aa3bbccb65fcad422
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/filetype.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 58acca42f7..b47013122d 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1454,11 +1454,15 @@ local filename = { ['ipf.conf'] = 'ipfilter', ['ipf6.conf'] = 'ipfilter', ['ipf.rules'] = 'ipfilter', - ['.eslintrc'] = 'json', - ['.babelrc'] = 'json', ['Pipfile.lock'] = 'json', ['.firebaserc'] = 'json', ['.prettierrc'] = 'json', + ['.babelrc'] = 'jsonc', + ['.eslintrc'] = 'jsonc', + ['.hintrc'] = 'jsonc', + ['.jsfmtrc'] = 'jsonc', + ['.jshintrc'] = 'jsonc', + ['.swrc'] = 'jsonc', Kconfig = 'kconfig', ['Kconfig.debug'] = 'kconfig', ['lftp.conf'] = 'lftp', @@ -1912,6 +1916,7 @@ local pattern = { ['.*%.properties_.._..'] = 'jproperties', ['org%.eclipse%..*%.prefs'] = 'jproperties', ['.*%.properties_.._.._.*'] = starsetf('jproperties'), + ['[jt]sconfig.*%.json'] = 'jsonc', ['Kconfig%..*'] = starsetf('kconfig'), ['.*%.[Ss][Uu][Bb]'] = 'krl', ['lilo%.conf.*'] = starsetf('lilo'), |