mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
vim-patch:8.2.4191: json5 files are not recognized (#17180)
Problem: json5 files are not recognized.
Solution: Add a pattern for json5 files. (closes vim/vim#9601)
e15ebeffb3
This commit is contained in:
@@ -882,6 +882,9 @@ au BufNewFile,BufRead *.jov,*.j73,*.jovial setf jovial
|
|||||||
" JSON
|
" JSON
|
||||||
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
|
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
|
||||||
|
|
||||||
|
" JSON5
|
||||||
|
au BufNewFile,BufRead *.json5 setf json5
|
||||||
|
|
||||||
" JSON Patch (RFC 6902)
|
" JSON Patch (RFC 6902)
|
||||||
au BufNewFile,BufRead *.json-patch setf json
|
au BufNewFile,BufRead *.json-patch setf json
|
||||||
|
|
||||||
|
@@ -293,6 +293,7 @@ local extension = {
|
|||||||
webmanifest = "json",
|
webmanifest = "json",
|
||||||
ipynb = "json",
|
ipynb = "json",
|
||||||
["json-patch"] = "json",
|
["json-patch"] = "json",
|
||||||
|
json5 = "json5",
|
||||||
jsonc = "jsonc",
|
jsonc = "jsonc",
|
||||||
jsp = "jsp",
|
jsp = "jsp",
|
||||||
jl = "julia",
|
jl = "julia",
|
||||||
|
@@ -265,6 +265,7 @@ let s:filename_checks = {
|
|||||||
\ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
|
\ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
|
||||||
\ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'],
|
\ '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', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'],
|
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'],
|
||||||
|
\ 'json5': ['file.json5'],
|
||||||
\ 'jsonc': ['file.jsonc'],
|
\ 'jsonc': ['file.jsonc'],
|
||||||
\ 'jsp': ['file.jsp'],
|
\ 'jsp': ['file.jsp'],
|
||||||
\ 'julia': ['file.jl'],
|
\ 'julia': ['file.jl'],
|
||||||
|
Reference in New Issue
Block a user