diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 1b4a7f21ec..328522eef0 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -843,14 +843,14 @@ syn match vimCmplxRepeat '[^a-zA-Z_/\\()]q[0-9a-zA-Z"]\>'lc=1 syn match vimCmplxRepeat '@[0-9a-z".=@:]\ze\($\|[^a-zA-Z]\>\)' " Set command and associated set-options (vimOptions) with comment {{{2 -syn match vimSet "\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skipwhite nextgroup=vimSetBang,vimSetArgs +syn match vimSet "\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skipwhite nextgroup=vimSetBang,vimCmdSep,vimComment,vimSetArgs syn region vimSetComment contained start=+"+ skip=+\n\s*\%(\\\||"\\ \)+ end="$" contains=@vimCommentGroup,vimCommentString extend syn match vimSetCmdSep contained "|" skipwhite nextgroup=@vimCmdList,vimSubst1,vimFunc syn match vimSetEscape contained "\\\%(\\[|"]\|.\)" syn match vimSetBarEscape contained "\\|" syn match vimSetQuoteEscape contained +\\"+ syn region vimSetArgs contained - \ start="\S" + \ start="\l\|<" \ skip=+\n\s*\%(\\\|["#]\\ \)\|^\s*"\\ + \ end=+\ze\\\@1]\+>" contains=vimOption syn region vimSetEqual contained \ matchgroup=vimOper \ start="[=:]\|[-+^]="