aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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
+}