Skip to content

Commit 2a4c885

Browse files
cezdrobrammool
authored andcommitted
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)
1 parent 58a3cae commit 2a4c885

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,9 @@ au BufNewFile,BufRead .babelrc,.eslintrc,.prettierrc,.firebaserc setf json
978978
" JSONC
979979
au BufNewFile,BufRead *.jsonc setf jsonc
980980

981+
" Jsonnet
982+
au BufNewFile,BufRead *.jsonnet,*.libjsonnet setf jsonnet
983+
981984
" Julia
982985
au BufNewFile,BufRead *.jl setf julia
983986

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ let s:filename_checks = {
285285
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc', 'file.slnf'],
286286
\ 'json5': ['file.json5'],
287287
\ 'jsonc': ['file.jsonc'],
288+
\ 'jsonnet': ['file.jsonnet', 'file.libjsonnet'],
288289
\ 'jsp': ['file.jsp'],
289290
\ 'julia': ['file.jl'],
290291
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ static char *(features[]) =
703703

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
417,
706708
/**/
707709
416,
708710
/**/

0 commit comments

Comments
 (0)