aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Jakobi <marc.jakobi@tiko.energy>2023-10-12 21:04:55 +0200
committerGitHub <noreply@github.com>2023-10-12 19:04:55 +0000
commit783e5fc3079680b307e8ac518935317907e71a59 (patch)
tree88e7a7a1b0d71c03e140622c92e38a00387b69b0 /tests
parentUpdate parsers: wing (diff)
downloadnvim-treesitter-783e5fc3079680b307e8ac518935317907e71a59.tar
nvim-treesitter-783e5fc3079680b307e8ac518935317907e71a59.tar.gz
nvim-treesitter-783e5fc3079680b307e8ac518935317907e71a59.tar.bz2
nvim-treesitter-783e5fc3079680b307e8ac518935317907e71a59.tar.lz
nvim-treesitter-783e5fc3079680b307e8ac518935317907e71a59.tar.xz
nvim-treesitter-783e5fc3079680b307e8ac518935317907e71a59.tar.zst
nvim-treesitter-783e5fc3079680b307e8ac518935317907e71a59.zip
feat(nix): some highlight improvements
- functions - builtin functions with prefix - add test file
Diffstat (limited to 'tests')
-rw-r--r--tests/query/highlights/nix/test.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/query/highlights/nix/test.nix b/tests/query/highlights/nix/test.nix
new file mode 100644
index 000000000..d5fb13de8
--- /dev/null
+++ b/tests/query/highlights/nix/test.nix
@@ -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
+}