mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 01:34:16 +00:00
vim-patch:959c3c8: runtime(vim): Update base-syntax, configurable comment string highlighting (vim/vim#14931)
Allow highlighting of strings within comments to be disabled by setting
g:vimsyn_comment_strings to false.
959c3c887b
Co-authored-by: dkearns <dougkearns@gmail.com>
This commit is contained in:
@@ -359,7 +359,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