commit f29ba3c46cc72b6281927fbcc9a5101dab0badd2
parent 2e0233d003710c91d513cce5074f6f4b9970e5ee
Author: Christian Clason <c.clason@uni-graz.at>
Date: Sun, 31 Mar 2024 19:07:24 +0200
vim-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: vim/vim#14358
https://github.com/vim/vim/commit/0fd560d46a1b83edba032300ab1f6119d4dca7b5
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -1141,6 +1141,7 @@ local extension = {
yml = 'yaml',
yaml = 'yaml',
eyaml = 'yaml',
+ mplstyle = 'yaml',
yang = 'yang',
yuck = 'yuck',
z8a = 'z8a',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -742,7 +742,7 @@ func s:GetFilenameChecks() abort
\ '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'],