mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
Add @keyword.operator for operators that are English words and add @exception for Java/JS
This commit is contained in:
parent
c1313ba7af
commit
7e3c4f8089
10 changed files with 75 additions and 27 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue