mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.2.3085: JSONC files are not recognized
Problem: JSONC files are not recognized. Solution: Recognize .jsonc files. (Izhak Jakov, closes #8500)
This commit is contained in:
committed by
Bram Moolenaar
parent
a26f56f675
commit
acbb4b5720
@@ -868,6 +868,9 @@ au BufNewFile,BufRead *.json-patch setf json
|
||||
" Jupyter Notebook is also json
|
||||
au BufNewFile,BufRead *.ipynb setf json
|
||||
|
||||
" JSONC
|
||||
au BufNewFile,BufRead *.jsonc setf jsonc
|
||||
|
||||
" Kixtart
|
||||
au BufNewFile,BufRead *.kix setf kix
|
||||
|
||||
|
@@ -260,6 +260,7 @@ let s:filename_checks = {
|
||||
\ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
|
||||
\ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'],
|
||||
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'],
|
||||
\ 'jsonc': ['file.jsonc'],
|
||||
\ 'jsp': ['file.jsp'],
|
||||
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
||||
\ 'kivy': ['file.kv'],
|
||||
|
@@ -755,6 +755,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3085,
|
||||
/**/
|
||||
3084,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user