Patch 8.2.3085

4 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 3, 2021, 7:11:40 AM7/3/21
to vim...@googlegroups.com

Patch 8.2.3085
Problem: JSONC files are not recognized.
Solution: Recognize .jsonc files. (Izhak Jakov, closes #8500)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-8.2.3084/runtime/filetype.vim 2021-06-26 12:02:51.484571740 +0200
--- runtime/filetype.vim 2021-07-03 13:01:03.683367056 +0200
***************
*** 868,873 ****
--- 868,876 ----
" Jupyter Notebook is also json
au BufNewFile,BufRead *.ipynb setf json

+ " JSONC
+ au BufNewFile,BufRead *.jsonc setf jsonc
+
" Kixtart
au BufNewFile,BufRead *.kix setf kix

*** ../vim-8.2.3084/src/testdir/test_filetype.vim 2021-06-26 12:02:51.484571740 +0200
--- src/testdir/test_filetype.vim 2021-07-03 13:01:03.683367056 +0200
***************
*** 260,265 ****
--- 260,266 ----
\ 'jovial': ['file.jov', 'file.j73', 'file.jovial'],
\ 'jproperties': ['file.properties', 'file.properties_xx', 'file.properties_xx_xx', 'some.properties_xx_xx_file'],
\ 'json': ['file.json', 'file.jsonp', 'file.json-patch', 'file.webmanifest', 'Pipfile.lock', 'file.ipynb'],
+ \ 'jsonc': ['file.jsonc'],
\ 'jsp': ['file.jsp'],
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
\ 'kivy': ['file.kv'],
*** ../vim-8.2.3084/src/version.c 2021-07-03 11:58:08.373825923 +0200
--- src/version.c 2021-07-03 13:03:52.203069188 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3085,
/**/

--
If bankers can count, how come they have eight windows and
only four tellers?

/// 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