mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
* fix(nix): highlight strings within interpolations * feat(nix): move `derivation` to function.builtin * fix(nix): removes all `priority` workarounds * feat(nix): arbitrary injections using `#` comments
21 lines
716 B
Nix
21 lines
716 B
Nix
{
|
|
func1 = param: builtins.readFile param;
|
|
# ^ @function
|
|
# ^ @variable.parameter
|
|
# ^ @constant.builtin
|
|
# ^ @function.builtin
|
|
func2 = { p1, p2 }: p2;
|
|
# ^ @function
|
|
# ^ @variable.parameter
|
|
readFile' = readFile;
|
|
# ^ @function.builtin
|
|
x = func1 ./path/to/file.nix;
|
|
# ^ @variable.member
|
|
# ^ @function.call
|
|
# ^ @string.special.path
|
|
hi = if true then 9 else throw "an error ${here + "string"}";
|
|
# ^ @keyword.exception
|
|
# ^ @string
|
|
# ^ @variable
|
|
# ^ @string
|
|
}
|