Skip to content

Commit c470ce1

Browse files
authored
Allow newlines between function name and parens for function call (pangloss#1244)
1 parent cf88724 commit c470ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ syntax match jsNoise /[:;]/
2828
syntax match jsNoise /,/ skipwhite skipempty nextgroup=@jsExpression
2929
syntax match jsDot /\./ skipwhite skipempty nextgroup=jsObjectProp,jsFuncCall,jsPrototype,jsTaggedTemplate
3030
syntax match jsObjectProp contained /\<\K\k*/
31-
syntax match jsFuncCall /\<\K\k*\ze\s*(/
31+
syntax match jsFuncCall /\<\K\k*\ze[\s\n]*(/
3232
syntax match jsParensError /[)}\]]/
3333

3434
" Program Keywords

0 commit comments

Comments
 (0)