mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
Add break and increment operators and tweak formatting
This commit is contained in:
parent
942fe70452
commit
aaa990053a
1 changed files with 10 additions and 4 deletions
|
|
@ -35,6 +35,7 @@
|
||||||
">="
|
">="
|
||||||
"<="
|
"<="
|
||||||
"||"
|
"||"
|
||||||
|
(increment_operator)
|
||||||
(is_operator)
|
(is_operator)
|
||||||
(prefix_operator)
|
(prefix_operator)
|
||||||
(equality_operator)
|
(equality_operator)
|
||||||
|
|
@ -58,7 +59,6 @@
|
||||||
","
|
","
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
|
||||||
; Types
|
; Types
|
||||||
|
|
||||||
(class_definition
|
(class_definition
|
||||||
|
|
@ -115,7 +115,8 @@
|
||||||
|
|
||||||
; Named arguments
|
; Named arguments
|
||||||
|
|
||||||
(named_argument (label (identifier) @label))
|
(named_argument
|
||||||
|
(label (identifier) @label))
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
|
|
@ -159,7 +160,6 @@
|
||||||
"super"
|
"super"
|
||||||
"var"
|
"var"
|
||||||
"with"
|
"with"
|
||||||
; "void"
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -187,7 +187,13 @@
|
||||||
|
|
||||||
["if" "else" "switch" "default"] @conditional
|
["if" "else" "switch" "default"] @conditional
|
||||||
|
|
||||||
["try" "throw" "catch" "finally"] @exception
|
[
|
||||||
|
"try"
|
||||||
|
"throw"
|
||||||
|
"catch"
|
||||||
|
"finally"
|
||||||
|
(break_statement)
|
||||||
|
] @exception
|
||||||
|
|
||||||
["do" "while" "continue" "for"] @repeat
|
["do" "while" "continue" "for"] @repeat
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue