diff --git a/queries/slint/highlights.scm b/queries/slint/highlights.scm index 7372f331c..957032497 100644 --- a/queries/slint/highlights.scm +++ b/queries/slint/highlights.scm @@ -16,6 +16,7 @@ (comment) @comment (value) @number +(int_number) @number (string) @string [ @@ -84,6 +85,8 @@ [ "," "." +";" +":" ] @punctuation.delimiter ; Brackets @@ -96,6 +99,8 @@ "}" ] @punctuation.bracket +(property_definition ["<" ">"] @punctuation.bracket) + [ "angle" "bool" @@ -113,3 +118,28 @@ "string" ] @type.builtin +[ + ":=" + "!" + "-" + "+" + "*" + "/" + "&&" + "||" + ">" + "<" + ">=" + "<=" + "=" + ":" + "+=" + "-=" + "*=" + "/=" + "?" + + "=>" + ] @operator + +(ternary_expression [":" "?"] @conditional)