aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/vim.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-12 10:23:09 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-06-12 10:29:19 +0800
commitbbe69b4022b577a801653991a8b7f7f2ab869e97 (patch)
tree35c3a5b74d18b2001fb572e1938064a76af96430 /runtime/syntax/vim.vim
parentc7799b1a23f82128e793448165ae88b403f9ef17 (diff)
downloadrneovim-bbe69b4022b577a801653991a8b7f7f2ab869e97.tar.gz
rneovim-bbe69b4022b577a801653991a8b7f7f2ab869e97.tar.bz2
rneovim-bbe69b4022b577a801653991a8b7f7f2ab869e97.zip
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. https://github.com/vim/vim/commit/959c3c887b2e52c7141b2a09a53634481911b1b7 Co-authored-by: dkearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/syntax/vim.vim')
-rw-r--r--runtime/syntax/vim.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index d916a666c9..d16d62dc4a 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -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