patch 9.1.0237: filetype: mplstyle files are not recognized Commit: https://github.com/vim/vim/commit/0fd560d46a1b83edba032300ab1f6119d4dca7b5 Author: Wu, Zhenyu <wuzhe...@ustc.edu> Date: Sun Mar 31 19:05:44 2024 +0200
patch 9.1.0237: filetype: mplstyle files are not recognized Problem: filetype: mplstyle files are not recognized Solution: Detect '*.mplstyle' files as yaml (Wu, Zhenyu) closes: #14358 Signed-off-by: Wu, Zhenyu <wuzhe...@ustc.edu> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 7c4d109ff..cbd677cef 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -409,6 +409,9 @@ au BufNewFile,BufRead .clang-format setf yaml " Clang-tidy au BufNewFile,BufRead .clang-tidy setf yaml +" Matplotlib style +au BufNewFile,BufRead *.mplstyle setf yaml + " Clean au BufNewFile,BufRead *.dcl,*.icl setf clean diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index df3803886..b1af7026d 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -820,7 +820,7 @@ def s:GetFilenameChecks(): dict<list<string>> xsd: ['file.xsd'], xslt: ['file.xsl', 'file.xslt'], yacc: ['file.yy', 'file.yxx', 'file.y++'], - yaml: ['file.yaml', 'file.yml', 'file.eyaml', '.clangd', '.clang-format', '.clang-tidy'], + yaml: ['file.yaml', 'file.yml', 'file.eyaml', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle'], yang: ['file.yang'], yuck: ['file.yuck'], z8a: ['file.z8a'], diff --git a/src/version.c b/src/version.c index ccc4e8358..2bf701cf6 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 237, /**/ 236, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1rqyls-000Lep-Sc%40256bit.org.