mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
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)
104b2ff4d0
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
This commit is contained in:
@@ -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'),
|
||||
|
Reference in New Issue
Block a user