]> granicus.if.org Git - vim/commitdiff
patch 9.0.1103: jq files are not recognized v9.0.1103
authorDavid McDonald <dgmcdona@uno.edu>
Mon, 26 Dec 2022 15:35:18 +0000 (15:35 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Dec 2022 15:35:18 +0000 (15:35 +0000)
Problem:    jq files are not recognized.
Solution:   Add detection of Jq files. (David McDonald, closes #11743)

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

index 81db06ee2bd75da6efd542bc1d13854ae1c93ce4..f63e5780ee004c3f7ff1f92e99848f5d41c45772 100644 (file)
@@ -996,6 +996,9 @@ au BufNewFile,BufRead *.jgr                 setf jgraph
 " Jovial
 au BufNewFile,BufRead *.jov,*.j73,*.jovial     setf jovial
 
+" Jq
+au BufNewFile,BufRead *.jq                     setf jq
+
 " JSON5
 au BufNewFile,BufRead *.json5                  setf json5
 
index a99aa322870279ccdf3501286d74b2c9afadb990..2123160c497272ef2f40e414433ba0af203afe07 100644 (file)
@@ -286,6 +286,7 @@ let s:filename_checks = {
     \ 'javascriptreact': ['file.jsx'],
     \ 'jess': ['file.clp'],
     \ 'jgraph': ['file.jgr'],
+    \ 'jq': ['file.jq'],
     \ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
     \ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file', 'org.eclipse.xyz.prefs'],
     \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', 'file.slnf'],
index 429d9ce684e039d4828dcb3a73697925379cc462..b33f6d5a88a5f677145aa5a4eaa1606969aad752 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1103,
 /**/
     1102,
 /**/