To: vim_dev@googlegroups.com Subject: Patch 8.2.3469 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3469 Problem: Some files with json syntax are not recognized. Solution: Add a few file patterns. (Emiliano Ruiz Carletti, closes #8947) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.3468/runtime/filetype.vim 2021-10-03 11:46:02.575517682 +0100 --- runtime/filetype.vim 2021-10-03 20:07:52.056837120 +0100 *************** *** 876,881 **** --- 876,884 ---- " Jupyter Notebook is also json au BufNewFile,BufRead *.ipynb setf json + " Other files that look like json + au BufNewFile,BufRead .babelrc,.eslintrc,.prettierrc,.firebaserc setf json + " JSONC au BufNewFile,BufRead *.jsonc setf jsonc *** ../vim-8.2.3468/src/testdir/test_filetype.vim 2021-10-03 11:46:02.575517682 +0100 --- src/testdir/test_filetype.vim 2021-10-03 20:08:43.825687435 +0100 *************** *** 259,265 **** \ 'jgraph': ['file.jgr'], \ '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'], \ 'julia': ['file.jl'], --- 259,265 ---- \ 'jgraph': ['file.jgr'], \ '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', '.babelrc', '.eslintrc', '.prettierrc', '.firebaserc'], \ 'jsonc': ['file.jsonc'], \ 'jsp': ['file.jsp'], \ 'julia': ['file.jl'], *** ../vim-8.2.3468/src/version.c 2021-10-03 19:29:44.279938580 +0100 --- src/version.c 2021-10-03 20:10:28.483462958 +0100 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 3469, /**/ -- I AM THANKFUL... ...for a lawn that needs mowing, windows that need cleaning and gutters that need fixing because it means I have a home. /// Bram Moolenaar -- Bram@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 ///