1
mirror of https://github.com/neovim/neovim.git synced 2025-01-01 17:23:36 -07:00

vim-patch:9.0.0922: Mermaid files are not recognized ()

Problem:    Mermaid files are not recognized.
Solution:   Add patterns for Mermaid. (Crag MacEachern)

364438d1e8

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Christian Clason 2022-11-22 23:28:49 +01:00 committed by GitHub
parent 915891f28c
commit d41e93d5a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions
runtime/lua/vim
src/nvim/testdir

View File

@ -659,6 +659,9 @@ local extension = {
dmt = 'maxima',
wxm = 'maxima',
mel = 'mel',
mmd = 'mermaid',
mmdc = 'mermaid',
mermaid = 'mermaid',
mf = 'mf',
mgl = 'mgl',
mgp = 'mgp',

View File

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