1
0
forked from aniani/vim

patch 9.0.1103: jq files are not recognized

Problem:    jq files are not recognized.
Solution:   Add detection of Jq files. (David McDonald, closes #11743)
This commit is contained in:
David McDonald
2022-12-26 15:35:18 +00:00
committed by Bram Moolenaar
parent a7fbaa43b7
commit b9a1edfc54
3 changed files with 6 additions and 0 deletions

View File

@@ -996,6 +996,9 @@ au BufNewFile,BufRead *.jgr setf jgraph
" Jovial " Jovial
au BufNewFile,BufRead *.jov,*.j73,*.jovial setf jovial au BufNewFile,BufRead *.jov,*.j73,*.jovial setf jovial
" Jq
au BufNewFile,BufRead *.jq setf jq
" JSON5 " JSON5
au BufNewFile,BufRead *.json5 setf json5 au BufNewFile,BufRead *.json5 setf json5

View File

@@ -286,6 +286,7 @@ let s:filename_checks = {
\ 'javascriptreact': ['file.jsx'], \ 'javascriptreact': ['file.jsx'],
\ 'jess': ['file.clp'], \ 'jess': ['file.clp'],
\ 'jgraph': ['file.jgr'], \ 'jgraph': ['file.jgr'],
\ 'jq': ['file.jq'],
\ 'jovial': ['file.jov', 'file.j73', 'file.jovial'], \ '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'], \ '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'], \ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', 'file.slnf'],

View File

@@ -695,6 +695,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 */
/**/
1103,
/**/ /**/
1102, 1102,
/**/ /**/