mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
feat(nickel): many more highlights
This commit is contained in:
parent
995b75fd51
commit
cb2cb74f3c
1 changed files with 29 additions and 7 deletions
|
|
@ -30,7 +30,13 @@
|
||||||
|
|
||||||
(types) @type
|
(types) @type
|
||||||
|
|
||||||
"Array" @type.builtin
|
[
|
||||||
|
"Array"
|
||||||
|
"Number"
|
||||||
|
"Dyn"
|
||||||
|
"Bool"
|
||||||
|
"String"
|
||||||
|
] @type.builtin
|
||||||
|
|
||||||
; BUILTIN Constants
|
; BUILTIN Constants
|
||||||
(bool) @boolean
|
(bool) @boolean
|
||||||
|
|
@ -46,15 +52,29 @@
|
||||||
"|>"
|
"|>"
|
||||||
"="
|
"="
|
||||||
"&"
|
"&"
|
||||||
|
"&&"
|
||||||
|
"||"
|
||||||
"=="
|
"=="
|
||||||
|
"+"
|
||||||
|
"-"
|
||||||
|
"*"
|
||||||
"/"
|
"/"
|
||||||
|
"%"
|
||||||
|
"!"
|
||||||
|
"?"
|
||||||
"!="
|
"!="
|
||||||
"<"
|
"<"
|
||||||
|
"<="
|
||||||
">"
|
">"
|
||||||
|
">="
|
||||||
"@"
|
"@"
|
||||||
".."
|
".."
|
||||||
|
"=>"
|
||||||
|
"++"
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
|
"or" @keyword.operator
|
||||||
|
|
||||||
(type_atom) @type
|
(type_atom) @type
|
||||||
|
|
||||||
(static_string) @string
|
(static_string) @string
|
||||||
|
|
@ -80,23 +100,25 @@
|
||||||
","
|
","
|
||||||
"."
|
"."
|
||||||
":"
|
":"
|
||||||
|
";"
|
||||||
"|"
|
"|"
|
||||||
"->"
|
"->"
|
||||||
"+"
|
|
||||||
"-"
|
|
||||||
"*"
|
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
(multstr_start) @string
|
(multstr_start) @string
|
||||||
|
|
||||||
(multstr_end) @string
|
(multstr_end) @string
|
||||||
|
|
||||||
(interpolation_start) @punctuation.bracket
|
[
|
||||||
|
(interpolation_start)
|
||||||
(interpolation_end) @punctuation.bracket
|
(interpolation_end)
|
||||||
|
] @punctuation.special
|
||||||
|
|
||||||
(builtin) @function.builtin
|
(builtin) @function.builtin
|
||||||
|
|
||||||
|
(builtin
|
||||||
|
"%" @function.builtin)
|
||||||
|
|
||||||
(fun_expr
|
(fun_expr
|
||||||
pats: (pattern_fun
|
pats: (pattern_fun
|
||||||
(ident) @variable.parameter))
|
(ident) @variable.parameter))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue