To: vim_dev@googlegroups.com Subject: Patch 8.2.4191 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4191 Problem: json5 files are not recognized. Solution: Add a pattern for json5 files. (closes #9601) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.4190/runtime/filetype.vim 2022-01-23 11:28:13.379203426 +0000 --- runtime/filetype.vim 2022-01-23 13:03:02.298165835 +0000 *************** *** 888,893 **** --- 888,896 ---- " JSON au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json + " JSON5 + au BufNewFile,BufRead *.json5 setf json5 + " JSON Patch (RFC 6902) au BufNewFile,BufRead *.json-patch setf json *** ../vim-8.2.4190/src/testdir/test_filetype.vim 2022-01-23 11:28:13.379203426 +0000 --- src/testdir/test_filetype.vim 2022-01-23 13:03:02.298165835 +0000 *************** *** 265,270 **** --- 265,271 ---- \ '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', 'file.slnf'], + \ 'json5': ['file.json5'], \ 'jsonc': ['file.jsonc'], \ 'jsp': ['file.jsp'], \ 'julia': ['file.jl'], *** ../vim-8.2.4190/src/version.c 2022-01-23 12:42:51.837379056 +0000 --- src/version.c 2022-01-23 13:04:37.112346278 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4191, /**/ -- ROBIN: (warily) And if you get a question wrong? ARTHUR: You are cast into the Gorge of Eternal Peril. ROBIN: Oh ... wacho! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// 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 ///