feat(nickel): many more highlights

This commit is contained in:
Riley Bruins
2026-03-01 12:57:34 -08:00
committed by Christian Clason
parent 995b75fd51
commit cb2cb74f3c

View File

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