Skip to content

Commit cd6e209

Browse files
runtime(kerml): update KerML comments to handle more cases
closes: #18502 Signed-off-by: Daumantas Kavolis <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent adc729c commit cd6e209

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

runtime/ftplugin/kerml.vim

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim filetype plugin
22
" Language: KerML
33
" Author: Daumantas Kavolis <[email protected]>
4-
" Last Change: 2025-10-03
4+
" Last Change: 2025-10-06
55

66
" Only do this when not done yet for this buffer
77
if exists("b:did_ftplugin")
@@ -11,9 +11,11 @@ endif
1111
" Don't load another plugin for this buffer
1212
let b:did_ftplugin = 1
1313

14-
" Set 'comments' to format dashed lists in comments.
15-
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1://*,mb:*,ex:*/,:///,://
16-
setlocal commentstring=//*\ %s\ */
14+
" Set 'comments' to format dashed and starred lists in comments,
15+
" include /*...*/ in 'comments' for formatting even if it technically
16+
" is not
17+
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,sO:*\ *,mO:*\ \ ,exO:*/,sr://*,mb:*,ex:*/,sr:/*,mb:*,ex:*/,:///,://
18+
setlocal commentstring=//\ %s
1719

1820
" Set 'formatoptions' to break comment lines but not other lines,
1921
" and insert the comment leader when hitting <CR> or using "o"

0 commit comments

Comments
 (0)