From 30b9ba1fef467707b0486bcb1e0e6f655c7b3226 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 20 May 2022 23:38:36 +0200 Subject: [PATCH] highlights(slint): highlight operators and more punctuation --- queries/slint/highlights.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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)