]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0922: Mermaid files are not recognized v9.0.0922
authorBram Moolenaar <Bram@vim.org>
Tue, 22 Nov 2022 19:16:29 +0000 (19:16 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 22 Nov 2022 19:16:29 +0000 (19:16 +0000)
Problem:    Mermaid files are not recognized.
Solution:   Add patterns for Mermaid. (Crag MacEachern)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 20ec7d11575714c56d3fc0829dafee2de4c13028..57f4e243154571f1fa91aa60176d08fefebf3c34 100644 (file)
@@ -1197,6 +1197,9 @@ au BufNewFile,BufRead hg-editor-*.txt             setf hgcommit
 " Mercurial config (looks like generic config file)
 au BufNewFile,BufRead *.hgrc,*hgrc             setf cfg
 
+" Mermaid
+au BufNewFile,BufRead *.mmd,*.mmdc,*.mermaid   setf mermaid
+
 " Meson Build system config
 au BufNewFile,BufRead meson.build,meson_options.txt setf meson
 au BufNewFile,BufRead *.wrap                   setf dosini
index cc48e5a5535222d43d6f76be70660eb02d5ce4bf..542a2a61d9c0003c11250985388ebfd3fb7a46cc 100644 (file)
@@ -349,6 +349,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',
index cde6e1d11a1b1bd38c4595a7729a0a01220336ad..c73f1c43187c4ed849d89f1e94a992bbd54b2969 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    922,
 /**/
     921,
 /**/