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