From aaa990053a36d7072c2d08af1c46e03355445293 Mon Sep 17 00:00:00 2001 From: Akin Sowemimo Date: Fri, 7 Aug 2020 15:15:16 +0100 Subject: Add break and increment operators and tweak formatting --- queries/dart/highlights.scm | 14 ++++++++++---- 1 file 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 -- cgit v1.2.3-70-g09d2