@@ -201,6 +201,7 @@ syntax region jsDestructuringPropertyComputed contained matchgroup=jsDestructu
201
201
" Comments
202
202
syntax keyword jsCommentTodo contained TODO FIXME XXX TBD
203
203
syntax region jsComment start =+ //+ end =/ $/ contains =jsCommentTodo,@Spell extend keepend
204
+ syntax region jsMultilineComment start =" ^\s *\/\/ .*\n\% (^\s *\/\/\)\@ =" end =" ^\s *\/\/ .*\n\% (^\s *\/\/\)\@ !" contains =jsCommentTodo,@Spell extend keepend fold
204
205
syntax region jsComment start =+ /\* + end =+ \* /+ contains =jsCommentTodo,@Spell fold extend keepend
205
206
syntax region jsEnvComment start =/ \% ^#!/ end =/ $/ display
206
207
@@ -232,7 +233,7 @@ if exists("javascript_plugin_flow")
232
233
runtime extras/flow.vim
233
234
endif
234
235
235
- syntax cluster jsExpression contains =jsBracket,jsParen,jsObject,jsTernaryIf,jsTaggedTemplate,jsTemplateString,jsString,jsRegexpString,jsNumber,jsFloat,jsOperator,jsOperatorKeyword,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsArrowFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsFuncCall,jsUndefined,jsNan,jsPrototype,jsBuiltins,jsNoise,jsClassDefinition,jsArrowFunction,jsArrowFuncArgs,jsParensError,jsComment,jsArguments,jsThis,jsSuper,jsDo,jsForAwait,jsAsyncKeyword,jsStatement,jsDot
236
+ syntax cluster jsExpression contains =jsBracket,jsParen,jsObject,jsTernaryIf,jsTaggedTemplate,jsTemplateString,jsString,jsRegexpString,jsNumber,jsFloat,jsOperator,jsOperatorKeyword,jsBooleanTrue,jsBooleanFalse,jsNull,jsFunction,jsArrowFunction,jsGlobalObjects,jsExceptions,jsFutureKeys,jsDomErrNo,jsDomNodeConsts,jsHtmlEvents,jsFuncCall,jsUndefined,jsNan,jsPrototype,jsBuiltins,jsNoise,jsClassDefinition,jsArrowFunction,jsArrowFuncArgs,jsParensError,jsComment,jsMultilineComment, jsArguments,jsThis,jsSuper,jsDo,jsForAwait,jsAsyncKeyword,jsStatement,jsDot
236
237
syntax cluster jsAll contains =@jsExpression,jsStorageClass,jsConditional,jsRepeat,jsReturn,jsException,jsTry,jsNoise,jsBlockLabel
237
238
238
239
" Define the default highlighting.
@@ -245,6 +246,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
245
246
else
246
247
command -nargs =+ HiLink hi def link <args>
247
248
endif
249
+ HiLink jsMultilineComment Comment
248
250
HiLink jsComment Comment
249
251
HiLink jsEnvComment PreProc
250
252
HiLink jsParensIfElse jsParens
0 commit comments