Add @keyword.operator for operators that are English words and add @exception for Java/JS

This commit is contained in:
Stephan Seitz 2020-09-13 15:08:11 +02:00 committed by Stephan Seitz
parent c1313ba7af
commit 7e3c4f8089
10 changed files with 75 additions and 27 deletions

View file

@ -141,7 +141,6 @@
"abstract"
"assert"
"break"
"catch"
"class"
"continue"
"default"
@ -149,13 +148,11 @@
"exports"
"extends"
"final"
"finally"
"implements"
"instanceof"
"interface"
"module"
"native"
"new"
"open"
"opens"
"package"
@ -168,17 +165,18 @@
"static"
"strictfp"
"synchronized"
"throw"
"throws"
"to"
"transient"
"transitive"
"try"
"uses"
"volatile"
"with"
] @keyword
[
"new"
] @keyword.operator
; Conditionals
[
@ -218,6 +216,16 @@
")"
] @punctuation.bracket
; Exceptions
[
"throw"
"throws"
"finally"
"try"
"catch"
] @exception
; Labels
(labeled_statement
(identifier) @label)