diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-05-18 16:42:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-05-18 16:42:17 +0100 |
commit | 6fadbc1e8c1f4c5b03eb6a78aeb023ca2c2a9a7d (patch) | |
tree | 9666ca26510e64e9feff5372635295ceadf215b2 | |
parent | 0222c2d103ad9298bec4dc8864cd80b4e7559db1 (diff) |
patch 9.0.1565: json lines files are not recognizedv9.0.1565
Problem: Json lines files are not recognized.
Solution: Add a pattern to detect "jsonl" files. (issue #7520)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 16bf8f9dd5..2f446a1aa2 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index ceaee8ab1d..e02872fd7c 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'], diff --git a/src/version.c b/src/version.c index 6cf7de948e..ca6d79245f 100644 --- 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 */ /**/ + 1565, +/**/ 1564, /**/ 1563, |