aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkin Sowemimo <akin.sowemimo@gmail.com>2020-08-07 15:15:16 +0100
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-08-09 19:12:26 +0200
commitaaa990053a36d7072c2d08af1c46e03355445293 (patch)
treed206ab6ac868acecc2e60d242f64405a5d5261ea
parentAdd todo comment and change this highlight group (diff)
downloadnvim-treesitter-aaa990053a36d7072c2d08af1c46e03355445293.tar
nvim-treesitter-aaa990053a36d7072c2d08af1c46e03355445293.tar.gz
nvim-treesitter-aaa990053a36d7072c2d08af1c46e03355445293.tar.bz2
nvim-treesitter-aaa990053a36d7072c2d08af1c46e03355445293.tar.lz
nvim-treesitter-aaa990053a36d7072c2d08af1c46e03355445293.tar.xz
nvim-treesitter-aaa990053a36d7072c2d08af1c46e03355445293.tar.zst
nvim-treesitter-aaa990053a36d7072c2d08af1c46e03355445293.zip
Add break and increment operators and tweak formatting
-rw-r--r--queries/dart/highlights.scm14
1 files changed, 10 insertions, 4 deletions
diff --git a/queries/dart/highlights.scm b/queries/dart/highlights.scm
index d0710c831..c49e1eab8 100644
--- a/queries/dart/highlights.scm
+++ b/queries/dart/highlights.scm
@@ -35,6 +35,7 @@
">="
"<="
"||"
+ (increment_operator)
(is_operator)
(prefix_operator)
(equality_operator)
@@ -58,7 +59,6 @@
","
] @punctuation.delimiter
-
; Types
(class_definition
@@ -115,7 +115,8 @@
; Named arguments
-(named_argument (label (identifier) @label))
+(named_argument
+ (label (identifier) @label))
; Literals
@@ -159,7 +160,6 @@
"super"
"var"
"with"
- ; "void"
] @keyword
[
@@ -187,7 +187,13 @@
["if" "else" "switch" "default"] @conditional
-["try" "throw" "catch" "finally"] @exception
+[
+ "try"
+ "throw"
+ "catch"
+ "finally"
+ (break_statement)
+] @exception
["do" "while" "continue" "for"] @repeat