]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(mermaid): correct wrong comment options
authorChristian Brabandt <cb@256bit.org>
Thu, 18 Jul 2024 18:32:04 +0000 (20:32 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 18 Jul 2024 18:32:04 +0000 (20:32 +0200)
fixes: #15279

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/mermaid.vim

index fe84ab37cfe4162a7a118f89781916348fa3e41d..5547ad3e1fe71e2638d165dcd414201a3d9a936c 100644 (file)
@@ -2,6 +2,7 @@
 " Language:     Mermaid
 " Maintainer:   Craig MacEachern <https://github.com/craigmac/vim-mermaid>
 " Last Change:  2022 Oct 13
+" 2024 Jul 18 by Vim Project (adjust comments)
 
 if exists("b:did_ftplugin")
   finish
@@ -16,9 +17,9 @@ setlocal shiftwidth=2
 setlocal softtabstop=-1
 setlocal tabstop=4
 
+setlocal comments=:%%
+setlocal commentstring=%%\ %s
 " TODO: comments, formatlist stuff, based on what?
-setlocal comments=b:#,fb:-
-setlocal commentstring=#\ %s
 setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o
 setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]:\\&^.\\{4\\}