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 <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 7c4d109..cbd677c 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -409,6 +409,9 @@
" 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 df38038..b1af702 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -820,7 +820,7 @@
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 ccc4e83..2bf701c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 237,
+/**/
236,
/**/
235,