mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -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
|
||||
|
||||
(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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue