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

0fd560d46a

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason 2024-03-31 19:07:24 +02:00
parent 2e0233d003
commit f29ba3c46c
2 changed files with 2 additions and 1 deletions

View File

@ -1141,6 +1141,7 @@ local extension = {
yml = 'yaml',
yaml = 'yaml',
eyaml = 'yaml',
mplstyle = 'yaml',
yang = 'yang',
yuck = 'yuck',
z8a = 'z8a',

View File

@ -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'],