]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0237: filetype: mplstyle files are not recognized v9.1.0237
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Sun, 31 Mar 2024 17:05:44 +0000 (19:05 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 17:05:44 +0000 (19:05 +0200)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 7c4d109ffbda9c01b09a4f046c03192a7d26a440..cbd677ceff68950dd4196978110c9e885959ae17 100644 (file)
@@ -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
 
index df38038862e04c3f9abbc90d41246e581f25ab6e..b1af7026d133f928ca7b79fc13b43c12a996ec19 100644 (file)
@@ -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'],
index ccc4e83583e68483791e07af91b24a171e7f60c9..2bf701cf6e7fab6cf8a6b3ab804d3ac4160c230e 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    237,
 /**/
     236,
 /**/