feat(nix): some highlight improvements

- functions
- builtin functions with prefix
- add test file
This commit is contained in:
Marc Jakobi 2023-10-12 21:04:55 +02:00 committed by GitHub
parent 49f7194e4c
commit 783e5fc307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 1 deletions

View 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
}