mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
highlights(slint): highlight operators and more punctuation
This commit is contained in:
parent
d7b7ca4a82
commit
30b9ba1fef
1 changed files with 30 additions and 0 deletions
|
|
@ -16,6 +16,7 @@
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
(value) @number
|
(value) @number
|
||||||
|
(int_number) @number
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -84,6 +85,8 @@
|
||||||
[
|
[
|
||||||
","
|
","
|
||||||
"."
|
"."
|
||||||
|
";"
|
||||||
|
":"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
; Brackets
|
; Brackets
|
||||||
|
|
@ -96,6 +99,8 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(property_definition ["<" ">"] @punctuation.bracket)
|
||||||
|
|
||||||
[
|
[
|
||||||
"angle"
|
"angle"
|
||||||
"bool"
|
"bool"
|
||||||
|
|
@ -113,3 +118,28 @@
|
||||||
"string"
|
"string"
|
||||||
] @type.builtin
|
] @type.builtin
|
||||||
|
|
||||||
|
[
|
||||||
|
":="
|
||||||
|
"!"
|
||||||
|
"-"
|
||||||
|
"+"
|
||||||
|
"*"
|
||||||
|
"/"
|
||||||
|
"&&"
|
||||||
|
"||"
|
||||||
|
">"
|
||||||
|
"<"
|
||||||
|
">="
|
||||||
|
"<="
|
||||||
|
"="
|
||||||
|
":"
|
||||||
|
"+="
|
||||||
|
"-="
|
||||||
|
"*="
|
||||||
|
"/="
|
||||||
|
"?"
|
||||||
|
|
||||||
|
"=>"
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
(ternary_expression [":" "?"] @conditional)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue