nvim-treesitter/tests/query/highlights/nix/test.nix
Marc Jakobi 783e5fc307
feat(nix): some highlight improvements
- functions
- builtin functions with prefix
- add test file
2023-10-12 19:04:55 +00:00

16 lines
399 B
Nix

{
func1 = param: builtins.readFile param;
# ^ @function
# ^ @parameter
# ^ @constant.builtin
# ^ @function.builtin
func2 = { p1, p2 }: p2;
# ^ @function
# ^ @parameter
readFile' = readFile;
# ^ @function.builtin
x = func1 ./path/to/file.nix;
# ^ @field
# ^ @function.call
# ^ @string.special
}