We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
class
1 parent 2c70878 commit bf34e60Copy full SHA for bf34e60
1 file changed
syntax/javascript.vim
@@ -222,7 +222,7 @@ syntax match jsArrowFuncArgs /([^()]*)\s*\(=>\)\@=/ skipempty skipwhite conta
222
syntax keyword jsClassKeywords extends class contained
223
syntax match jsClassNoise /\./ contained
224
syntax keyword jsClassMethodDefinitions get set static contained nextgroup=jsFuncName skipwhite skipempty
225
-syntax match jsClassDefinition /class\%( [a-zA-Z_$][0-9a-zA-Z_$ \n.]*\)*/ contains=jsClassKeywords,jsClassNoise nextgroup=jsClassBlock skipwhite skipempty
+syntax match jsClassDefinition /\<class\>\%( [a-zA-Z_$][0-9a-zA-Z_$ \n.]*\)*/ contains=jsClassKeywords,jsClassNoise nextgroup=jsClassBlock skipwhite skipempty
226
227
" Define the default highlighting.
228
" For version 5.7 and earlier: only when not done already
0 commit comments