Skip to content

Commit 4266daa

Browse files
committed
runtime(mermaid): correct wrong comment options
fixes: #15279 Signed-off-by: Christian Brabandt <[email protected]>
1 parent e7a4523 commit 4266daa

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

runtime/ftplugin/mermaid.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
" Language: Mermaid
33
" Maintainer: Craig MacEachern <https://github.com/craigmac/vim-mermaid>
44
" Last Change: 2022 Oct 13
5+
" 2024 Jul 18 by Vim Project (adjust comments)
56

67
if exists("b:did_ftplugin")
78
finish
@@ -16,9 +17,9 @@ setlocal shiftwidth=2
1617
setlocal softtabstop=-1
1718
setlocal tabstop=4
1819

20+
setlocal comments=:%%
21+
setlocal commentstring=%%\ %s
1922
" TODO: comments, formatlist stuff, based on what?
20-
setlocal comments=b:#,fb:-
21-
setlocal commentstring=#\ %s
2223
setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o
2324
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]:\\&^.\\{4\\}
2425

0 commit comments

Comments
 (0)