Skip to content

Commit c7593e6

Browse files
authored
jsCatch can be followed by jsParenCatch or jsTryCatchBlock. (#1230)
1 parent 3c90d0c commit c7593e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ syntax keyword jsDo do skipwhite skipempty next
104104
syntax region jsSwitchCase contained matchgroup=jsLabel start=/\<\%(case\|default\)\>/ end=/:\@=/ contains=@jsExpression,jsLabel skipwhite skipempty nextgroup=jsSwitchColon keepend
105105
syntax keyword jsTry try skipwhite skipempty nextgroup=jsTryCatchBlock
106106
syntax keyword jsFinally contained finally skipwhite skipempty nextgroup=jsFinallyBlock
107-
syntax keyword jsCatch contained catch skipwhite skipempty nextgroup=jsParenCatch
107+
syntax keyword jsCatch contained catch skipwhite skipempty nextgroup=jsParenCatch,jsTryCatchBlock
108108
syntax keyword jsException throw
109109
syntax keyword jsAsyncKeyword async await
110110
syntax match jsSwitchColon contained /::\@!/ skipwhite skipempty nextgroup=jsSwitchBlock

0 commit comments

Comments
 (0)