We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 776b7bc commit 52c2255Copy full SHA for 52c2255
1 file changed
syntax/javascript.vim
@@ -208,8 +208,9 @@ else
208
endif
209
210
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 skipempty
+syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas,jsFuncArgRest nextgroup=jsFuncBlock keepend skipwhite skipempty
212
syntax match jsFuncArgCommas contained ','
213
+syntax match jsFuncArgRest contained /\.\.\.[a-zA-Z_$][0-9a-zA-Z_$]*/
214
syntax keyword jsArgsObj arguments contained containedin=jsFuncBlock
215
216
" Define the default highlighting.
0 commit comments