mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(nix): some highlight improvements
- functions - builtin functions with prefix - add test file
This commit is contained in:
parent
49f7194e4c
commit
783e5fc307
2 changed files with 30 additions and 1 deletions
16
tests/query/highlights/nix/test.nix
Normal file
16
tests/query/highlights/nix/test.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue