diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-03-31 19:07:24 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-01 12:01:47 +0200 |
commit | f29ba3c46cc72b6281927fbcc9a5101dab0badd2 (patch) | |
tree | 899f0688ae39c0493305a67d7c1c98f5038ef9b3 | |
parent | 2e0233d003710c91d513cce5074f6f4b9970e5ee (diff) | |
download | rneovim-f29ba3c46cc72b6281927fbcc9a5101dab0badd2.tar.gz rneovim-f29ba3c46cc72b6281927fbcc9a5101dab0badd2.tar.bz2 rneovim-f29ba3c46cc72b6281927fbcc9a5101dab0badd2.zip |
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>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 16bfd2f912..c788ae4413 100644 --- 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 index 64481d51c2..7b4787e64d 100644 --- 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'], |