Patch 9.0.1565

4 views
Skip to first unread message

Bram Moolenaar

unread,
May 18, 2023, 11:42:49 AM5/18/23
to vim...@googlegroups.com

Patch 9.0.1565
Problem: Json lines files are not recognized.
Solution: Add a pattern to detect "jsonl" files. (issue #7520)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-9.0.1564/runtime/filetype.vim 2023-05-13 12:15:53.436821646 +0100
--- runtime/filetype.vim 2023-05-18 16:32:30.935507271 +0100
***************
*** 1063,1068 ****
--- 1063,1071 ----
" 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

*** ../vim-9.0.1564/src/testdir/test_filetype.vim 2023-05-13 12:15:53.436821646 +0100
--- src/testdir/test_filetype.vim 2023-05-18 16:34:46.787459820 +0100
***************
*** 305,310 ****
--- 305,311 ----
\ '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'],
*** ../vim-9.0.1564/src/version.c 2023-05-18 13:26:50.038801412 +0100
--- src/version.c 2023-05-18 16:34:19.703469219 +0100
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1565,
/**/

--
Don't believe everything you hear or anything you say.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages