diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2026-03-01 12:57:34 -0800 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-03-01 22:56:47 +0100 |
| commit | cb2cb74f3c3cbbcc17e79cada2060165d616d849 (patch) | |
| tree | 030f376bf0eb079a2c406b26d671d63cb51734b1 | |
| parent | feat: add gql function highlighting for ecmascript injection (#8541) (diff) | |
| download | nvim-treesitter-cb2cb74f3c3cbbcc17e79cada2060165d616d849.tar nvim-treesitter-cb2cb74f3c3cbbcc17e79cada2060165d616d849.tar.gz nvim-treesitter-cb2cb74f3c3cbbcc17e79cada2060165d616d849.tar.bz2 nvim-treesitter-cb2cb74f3c3cbbcc17e79cada2060165d616d849.tar.lz nvim-treesitter-cb2cb74f3c3cbbcc17e79cada2060165d616d849.tar.xz nvim-treesitter-cb2cb74f3c3cbbcc17e79cada2060165d616d849.tar.zst nvim-treesitter-cb2cb74f3c3cbbcc17e79cada2060165d616d849.zip | |
feat(nickel): many more highlights
| -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)) |
