Skip to content

Commit 1586f72

Browse files
committed
Added async to jsClassMethodDefinitions
It's an ES7 feature, fixes #506
1 parent f90113a commit 1586f72

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
@@ -164,7 +164,7 @@ exe 'syntax match jsArrowFunction /=>/ skipwhite skipempty nextgroup=jsFunc
164164

165165
syntax keyword jsClassKeywords contained extends class
166166
syntax match jsClassNoise contained /\./
167-
syntax match jsClassMethodDefinitions contained /\%(get\|set\|static\)\%( \k\+\)\@=/ skipwhite skipempty nextgroup=jsFuncName,jsClassProperty
167+
syntax match jsClassMethodDefinitions contained /\%(get\|set\|static\|async\)\%( \k\+\)\@=/ skipwhite skipempty nextgroup=jsFuncName,jsClassProperty
168168
syntax match jsClassDefinition /\<class\>\%( [a-zA-Z_$][0-9a-zA-Z_$ \n.]*\)*/ contains=jsClassKeywords,jsClassNoise skipwhite skipempty nextgroup=jsClassBlock,jsFlowClass
169169
syntax match jsDecorator contained "@" nextgroup=jsDecoratorFunction
170170
syntax match jsDecoratorFunction contained "[a-zA-Z_][a-zA-Z0-9_.]*"

0 commit comments

Comments
 (0)