Skip to content

Commit 994b78b

Browse files
committed
Fix for jsFuncCall
It looks like `jsFuncCall` was broken when I added the `jsObjectProp` group. Mostly I just needed to add `jsFuncCall` to `.` nextgroup and tweak syntax priorities.
1 parent 871ab29 commit 994b78b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

syntax/javascript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ syntax sync fromstart
2525
syntax case match
2626

2727
syntax match jsNoise /[:,\;]\{1}/
28-
syntax match jsNoise /[\.]\{1}/ skipwhite skipempty nextgroup=jsObjectProp
28+
syntax match jsNoise /[\.]\{1}/ skipwhite skipempty nextgroup=jsObjectProp,jsFuncCall
29+
syntax match jsObjectProp contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>/
2930
syntax match jsFuncCall /\k\+\%(\s*(\)\@=/
3031
syntax match jsParensError /[)}\]]/
3132

@@ -221,7 +222,6 @@ syntax region jsCommentMisc contained start=/\/\*/ end=/\*\// contains=j
221222
" Decorators
222223
syntax match jsDecorator /^\s*@/ nextgroup=jsDecoratorFunction
223224
syntax match jsDecoratorFunction contained /[a-zA-Z_][a-zA-Z0-9_.]*/ nextgroup=jsParenDecorator
224-
syntax match jsObjectProp contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*\>/
225225

226226
if exists("javascript_plugin_jsdoc")
227227
runtime extras/jsdoc.vim

0 commit comments

Comments
 (0)