highlights(slint): highlight operators and more punctuation

This commit is contained in:
Stephan Seitz 2022-05-20 23:38:36 +02:00
parent d7b7ca4a82
commit 30b9ba1fef

View file

@ -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)