diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2024-03-30 19:35:32 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-01 11:39:38 +0200 |
| commit | 0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24 (patch) | |
| tree | 8211da4a37a3cd8daf19261cb07381cb80563ac9 | |
| parent | feat(nix): misc. operator/punctuation highlights (diff) | |
| download | nvim-treesitter-0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24.tar nvim-treesitter-0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24.tar.gz nvim-treesitter-0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24.tar.bz2 nvim-treesitter-0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24.tar.lz nvim-treesitter-0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24.tar.xz nvim-treesitter-0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24.tar.zst nvim-treesitter-0bfa0be5e4c8f4e70dad81bea1ce0cda2d76ca24.zip | |
fix(nix): highlight ellipsis as builtin parameter
This maintains consistency with a lot of other languages that also have
ellipses as parameter types, which we typically highlight as
`@variable.parameter.builtin`
| -rw-r--r-- | queries/nix/highlights.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/nix/highlights.scm b/queries/nix/highlights.scm index 9ec484d1c..33cdaf409 100644 --- a/queries/nix/highlights.scm +++ b/queries/nix/highlights.scm @@ -75,7 +75,7 @@ "?"? @operator) ; `...` in `{ ... }`, used to ignore unknown named function arguments (see above) -(ellipses) @punctuation.special +(ellipses) @variable.parameter.builtin ; universal is the parameter of the function expression ; `:` in `x: y`, used to separate function argument from body (see above) |
