From 364438d1e817d1d76003695f9ab533df35f8948a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 22 Nov 2022 19:16:29 +0000 Subject: [PATCH] patch 9.0.0922: Mermaid files are not recognized Problem: Mermaid files are not recognized. Solution: Add patterns for Mermaid. (Crag MacEachern) --- runtime/filetype.vim | 3 +++ src/testdir/test_filetype.vim | 1 + src/version.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 20ec7d115..57f4e2431 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index cc48e5a55..542a2a61d 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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', diff --git a/src/version.c b/src/version.c index cde6e1d11..c73f1c431 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 922, /**/ 921, /**/ -- 2.40.0