forked from aniani/vim
patch 9.0.1565: json lines files are not recognized
Problem: Json lines files are not recognized. Solution: Add a pattern to detect "jsonl" files. (issue #7520)
This commit is contained in:
parent
0222c2d103
commit
6fadbc1e8c
@ -1063,6 +1063,9 @@ au BufNewFile,BufRead .jshintrc,.hintrc,.swrc,[jt]sconfig*.json setf jsonc
|
||||
" JSON
|
||||
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
|
||||
|
||||
" JSON Lines
|
||||
au BufNewFile,BufRead *.jsonl setf jsonl
|
||||
|
||||
" Jsonnet
|
||||
au BufNewFile,BufRead *.jsonnet,*.libsonnet setf jsonnet
|
||||
|
||||
|
@ -305,6 +305,7 @@ let s:filename_checks = {
|
||||
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'],
|
||||
\ 'json5': ['file.json5'],
|
||||
\ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json'],
|
||||
\ 'jsonl': ['file.jsonl'],
|
||||
\ 'jsonnet': ['file.jsonnet', 'file.libsonnet'],
|
||||
\ 'jsp': ['file.jsp'],
|
||||
\ 'julia': ['file.jl'],
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1565,
|
||||
/**/
|
||||
1564,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user