mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
vim-patch:8.2.3049: JSON patch file not recognized
Problem: JSON patch file not recognized.
Solution: Recognize json-patch as json. (Kevin Locke, closes vim/vim#8450)
6582e230a0
This commit is contained in:
@@ -858,6 +858,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
|
||||||
|
|
||||||
|
" JSON Patch (RFC 6902)
|
||||||
|
au BufNewFile,BufRead *.json-patch setf json
|
||||||
|
|
||||||
" Jupyter Notebook is also json
|
" Jupyter Notebook is also json
|
||||||
au BufNewFile,BufRead *.ipynb setf json
|
au BufNewFile,BufRead *.ipynb setf json
|
||||||
|
|
||||||
|
@@ -259,7 +259,7 @@ let s:filename_checks = {
|
|||||||
\ 'jgraph': ['file.jgr'],
|
\ 'jgraph': ['file.jgr'],
|
||||||
\ '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.webmanifest', 'Pipfile.lock', 'file.ipynb'],
|
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'],
|
||||||
\ 'jsp': ['file.jsp'],
|
\ 'jsp': ['file.jsp'],
|
||||||
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
||||||
\ 'kivy': ['file.kv'],
|
\ 'kivy': ['file.kv'],
|
||||||
|
Reference in New Issue
Block a user