mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
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:
@@ -1063,6 +1063,9 @@ au BufNewFile,BufRead .jshintrc,.hintrc,.swrc,[jt]sconfig*.json setf jsonc
|
|||||||
" JSON
|
" JSON
|
||||||
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
|
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
|
||||||
|
|
||||||
|
" JSON Lines
|
||||||
|
au BufNewFile,BufRead *.jsonl setf jsonl
|
||||||
|
|
||||||
" Jsonnet
|
" Jsonnet
|
||||||
au BufNewFile,BufRead *.jsonnet,*.libsonnet setf 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'],
|
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb', '.prettierrc', '.firebaserc', '.stylelintrc', 'file.slnf'],
|
||||||
\ 'json5': ['file.json5'],
|
\ 'json5': ['file.json5'],
|
||||||
\ 'jsonc': ['file.jsonc', '.babelrc', '.eslintrc', '.jsfmtrc', '.jshintrc', '.hintrc', '.swrc', 'jsconfig.json', 'tsconfig.json', 'tsconfig.test.json', 'tsconfig-test.json'],
|
\ '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'],
|
\ 'jsonnet': ['file.jsonnet', 'file.libsonnet'],
|
||||||
\ 'jsp': ['file.jsp'],
|
\ 'jsp': ['file.jsp'],
|
||||||
\ 'julia': ['file.jl'],
|
\ 'julia': ['file.jl'],
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
1565,
|
||||||
/**/
|
/**/
|
||||||
1564,
|
1564,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user