Skip to content

Commit 83f3ed7

Browse files
committed
Fixing jsFuncBlock when braces are on a new line
jsFuncBlock braces would not be highlighted if they where on a new line
1 parent e1c29c7 commit 83f3ed7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ else
208208
endif
209209

210210
syntax match jsFuncName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=jsFuncArgs skipwhite
211-
syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas nextgroup=jsFuncBlock keepend skipwhite
211+
syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas nextgroup=jsFuncBlock keepend skipwhite skipempty
212212
syntax match jsFuncArgCommas contained ','
213213
syntax keyword jsArgsObj arguments contained containedin=jsFuncBlock
214214

0 commit comments

Comments
 (0)