diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-11-22 23:28:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 23:28:49 +0100 |
commit | d41e93d5a83642f90898cae211e017d99ff97fd9 (patch) | |
tree | 2d8cb9ac1d463cf162f9a030362937fdf623002b | |
parent | 915891f28c3bd51007ea4105db82c62c17177115 (diff) | |
download | rneovim-d41e93d5a83642f90898cae211e017d99ff97fd9.tar.gz rneovim-d41e93d5a83642f90898cae211e017d99ff97fd9.tar.bz2 rneovim-d41e93d5a83642f90898cae211e017d99ff97fd9.zip |
vim-patch:9.0.0922: Mermaid files are not recognized (#21160)
Problem: Mermaid files are not recognized.
Solution: Add patterns for Mermaid. (Crag MacEachern)
https://github.com/vim/vim/commit/364438d1e817d1d76003695f9ab533df35f8948a
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 3 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index f06a5690a0..1cc9beecc6 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -659,6 +659,9 @@ local extension = { dmt = 'maxima', wxm = 'maxima', mel = 'mel', + mmd = 'mermaid', + mmdc = 'mermaid', + mermaid = 'mermaid', mf = 'mf', mgl = 'mgl', mgp = 'mgp', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index c8d8239757..1d9465dd94 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -350,6 +350,7 @@ let s:filename_checks = { \ 'maxima': ['file.demo', 'file.dmt', 'file.dm1', 'file.dm2', 'file.dm3', \ 'file.wxm', 'maxima-init.mac'], \ 'mel': ['file.mel'], + \ 'mermaid': ['file.mmd', 'file.mmdc', 'file.mermaid'], \ 'meson': ['meson.build', 'meson_options.txt'], \ 'messages': ['/log/auth', '/log/cron', '/log/daemon', '/log/debug', '/log/kern', '/log/lpr', '/log/mail', '/log/messages', '/log/news/news', '/log/syslog', '/log/user', \ '/log/auth.log', '/log/cron.log', '/log/daemon.log', '/log/debug.log', '/log/kern.log', '/log/lpr.log', '/log/mail.log', '/log/messages.log', '/log/news/news.log', '/log/syslog.log', '/log/user.log', |