0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.0.0417: Jsonnet files are not recognized

Problem:    Jsonnet files are not recognized.
Solution:   Add a pattern for Jsonnet files. (Cezary Drożak, closes #11073,
            closes #11081)
This commit is contained in:
=?UTF-8?q?Cezary=20Dro=C5=BCak?= 2022-09-08 14:41:48 +01:00 committed by Bram Moolenaar
parent 58a3cae3eb
commit 2a4c885d54
3 changed files with 6 additions and 0 deletions

View File

@ -978,6 +978,9 @@ au BufNewFile,BufRead .babelrc,.eslintrc,.prettierrc,.firebaserc setf json
" JSONC " JSONC
au BufNewFile,BufRead *.jsonc setf jsonc au BufNewFile,BufRead *.jsonc setf jsonc
" Jsonnet
au BufNewFile,BufRead *.jsonnet,*.libjsonnet setf jsonnet
" Julia " Julia
au BufNewFile,BufRead *.jl setf julia au BufNewFile,BufRead *.jl setf julia

View File

@ -285,6 +285,7 @@ let s:filename_checks = {
\ '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'], \ 'json5': ['file.json5'],
\ 'jsonc': ['file.jsonc'], \ 'jsonc': ['file.jsonc'],
\ 'jsonnet': ['file.jsonnet', 'file.libjsonnet'],
\ 'jsp': ['file.jsp'], \ 'jsp': ['file.jsp'],
\ 'julia': ['file.jl'], \ 'julia': ['file.jl'],
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'], \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],

View File

@ -703,6 +703,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
417,
/**/ /**/
416, 416,
/**/ /**/