diff options
| -rw-r--r-- | runtime/queries/nickel/highlights.scm | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/runtime/queries/nickel/highlights.scm b/runtime/queries/nickel/highlights.scm index 20b52b30e..2f563e9f8 100644 --- a/runtime/queries/nickel/highlights.scm +++ b/runtime/queries/nickel/highlights.scm @@ -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)) |
