Skip to content

Commit e8657a8

Browse files
committed
Merge pull request #402 from amadeus/fix-401
Fix class definitions with no name
2 parents 0e7983d + dde16a0 commit e8657a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ syntax match jsArrowFuncArgs /([^()]*)\s*\(=>\)\@=/ skipempty skipwhite conta
215215
syntax keyword jsClassKeywords extends class contained
216216
syntax match jsClassNoise /\./ contained
217217
syntax keyword jsClassMethodDefinitions get set static contained nextgroup=jsFuncName skipwhite skipempty
218-
syntax match jsClassDefinition /class [a-zA-Z_$][0-9a-zA-Z_$ \n.]*/ contains=jsClassKeywords,jsClassNoise nextgroup=jsClassBlock skipwhite skipempty
218+
syntax match jsClassDefinition /class\%( [a-zA-Z_$][0-9a-zA-Z_$ \n.]*\)*/ contains=jsClassKeywords,jsClassNoise nextgroup=jsClassBlock skipwhite skipempty
219219

220220
" Define the default highlighting.
221221
" For version 5.7 and earlier: only when not done already

0 commit comments

Comments
 (0)