runtime(vim): Update base-syntax, configurable comment string highlighting (#14931)
Allow highlighting of strings within comments to be disabled by setting g:vimsyn_comment_strings to false. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -408,7 +408,9 @@ syn region vimUserCmdBlock contained matchgroup=vimSep start="{" end="}" contain
|
||||
|
||||
" Lower Priority Comments: after some vim commands... {{{2
|
||||
" =======================
|
||||
syn region vimCommentString contained oneline start='\S\s\+"'ms=e end='"'
|
||||
if get(g:, "vimsyn_comment_strings", 1)
|
||||
syn region vimCommentString contained oneline start='\S\s\+"'ms=e end='"'
|
||||
endif
|
||||
|
||||
if s:vim9script
|
||||
syn match vimComment excludenl +\s"[^\-:.%#=*].*$+lc=1 contains=@vimCommentGroup,vimCommentString contained
|
||||
|
||||
Reference in New Issue
Block a user