]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0417: Jsonnet files are not recognized v9.0.0417
author=?UTF-8?q?Cezary=20Dro=C5=BCak?= <cezdro@alatek.com.pl>
Thu, 8 Sep 2022 13:41:48 +0000 (14:41 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 8 Sep 2022 13:41:48 +0000 (14:41 +0100)
Problem:    Jsonnet files are not recognized.
Solution:   Add a pattern for Jsonnet files. (Cezary Drożak, closes #11073,
            closes #11081)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index e79bbba35e382f4b29da48cafc8d4e6e439f7fba..f445d7cb058a15890368e98c6fc42d9aab9f7636 100644 (file)
@@ -978,6 +978,9 @@ au BufNewFile,BufRead .babelrc,.eslintrc,.prettierrc,.firebaserc  setf json
 " JSONC
 au BufNewFile,BufRead *.jsonc                  setf jsonc
 
+" Jsonnet
+au BufNewFile,BufRead *.jsonnet,*.libjsonnet   setf jsonnet
+
 " Julia
 au BufNewFile,BufRead *.jl                     setf julia
 
index 9d2677c7fca5ac6e441e3f17a7a103837b88e302..33b0894b2a1b815d6f468dd62f2f68b65caa27f5 100644 (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'],
     \ 'json5': ['file.json5'],
     \ 'jsonc': ['file.jsonc'],
+    \ 'jsonnet': ['file.jsonnet', 'file.libjsonnet'],
     \ 'jsp': ['file.jsp'],
     \ 'julia': ['file.jl'],
     \ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
index 86924eddf05812e764202aab6ab7663e98752fce..7a79fdc4bd6b99dc0301b1b73abac00a82cf7a7d 100644 (file)
@@ -703,6 +703,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    417,
 /**/
     416,
 /**/