Skip to content

Commit 9d59178

Browse files
committed
Adding jsArgsObj keyword
Adding `arguments`, linked to `Special` only within `jsFuncBlock`
1 parent d3b37e8 commit 9d59178

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

syntax/javascript.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ syntax match jsOpAssign /=\@<!=/ nextgroup=jsFuncBlock skipwhite skipemp
212212
syntax match jsFuncName contained /\<[a-zA-Z_$][0-9a-zA-Z_$]*/ nextgroup=jsFuncArgs skipwhite
213213
syntax region jsFuncArgs contained matchgroup=jsFuncParens start='(' end=')' contains=jsFuncArgCommas nextgroup=jsFuncBlock keepend skipwhite
214214
syntax match jsFuncArgCommas contained ','
215+
syntax keyword jsArgsObj arguments contained containedin=jsFuncBlock
215216

216217
" Define the default highlighting.
217218
" For version 5.7 and earlier: only when not done already
@@ -262,6 +263,7 @@ if version >= 508 || !exists("did_javascript_syn_inits")
262263
HiLink jsFuncArgCommas Function
263264
HiLink jsFuncArgs Function
264265
HiLink jsFuncBlocks Function
266+
HiLink jsArgsObj Special
265267
HiLink jsError Error
266268
HiLink jsParensError Error
267269
HiLink jsParensErrA Error

0 commit comments

Comments
 (0)