changeset 31541:f2da18e495aa v9.0.1103

patch 9.0.1103: jq files are not recognized Commit: https://github.com/vim/vim/commit/b9a1edfc5434f2a3ac50b1a178d3c85aa417b798 Author: David McDonald <dgmcdona@uno.edu> Date: Mon Dec 26 15:35:18 2022 +0000 patch 9.0.1103: jq files are not recognized Problem: jq files are not recognized. Solution: Add detection of Jq files. (David McDonald, closes https://github.com/vim/vim/issues/11743)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Dec 2022 16:45:04 +0100
parents f2aa67688f98
children ed8f9e6c10f2
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -996,6 +996,9 @@ au BufNewFile,BufRead *.jgr			setf jgrap
 " Jovial
 au BufNewFile,BufRead *.jov,*.j73,*.jovial	setf jovial
 
+" Jq
+au BufNewFile,BufRead *.jq			setf jq
+
 " JSON5
 au BufNewFile,BufRead *.json5			setf json5
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1103,
+/**/
     1102,
 /**/
     1101,