mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
feat(nickel): many more highlights
This commit is contained in:
committed by
Christian Clason
parent
995b75fd51
commit
cb2cb74f3c
@@ -30,7 +30,13 @@
|
||||
|
||||
(types) @type
|
||||
|
||||
"Array" @type.builtin
|
||||
[
|
||||
"Array"
|
||||
"Number"
|
||||
"Dyn"
|
||||
"Bool"
|
||||
"String"
|
||||
] @type.builtin
|
||||
|
||||
; BUILTIN Constants
|
||||
(bool) @boolean
|
||||
@@ -46,15 +52,29 @@
|
||||
"|>"
|
||||
"="
|
||||
"&"
|
||||
"&&"
|
||||
"||"
|
||||
"=="
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"!"
|
||||
"?"
|
||||
"!="
|
||||
"<"
|
||||
"<="
|
||||
">"
|
||||
">="
|
||||
"@"
|
||||
".."
|
||||
"=>"
|
||||
"++"
|
||||
] @operator
|
||||
|
||||
"or" @keyword.operator
|
||||
|
||||
(type_atom) @type
|
||||
|
||||
(static_string) @string
|
||||
@@ -80,23 +100,25 @@
|
||||
","
|
||||
"."
|
||||
":"
|
||||
";"
|
||||
"|"
|
||||
"->"
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
] @punctuation.delimiter
|
||||
|
||||
(multstr_start) @string
|
||||
|
||||
(multstr_end) @string
|
||||
|
||||
(interpolation_start) @punctuation.bracket
|
||||
|
||||
(interpolation_end) @punctuation.bracket
|
||||
[
|
||||
(interpolation_start)
|
||||
(interpolation_end)
|
||||
] @punctuation.special
|
||||
|
||||
(builtin) @function.builtin
|
||||
|
||||
(builtin
|
||||
"%" @function.builtin)
|
||||
|
||||
(fun_expr
|
||||
pats: (pattern_fun
|
||||
(ident) @variable.parameter))
|
||||
|
||||
Reference in New Issue
Block a user