From 783e5fc3079680b307e8ac518935317907e71a59 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Thu, 12 Oct 2023 21:04:55 +0200 Subject: feat(nix): some highlight improvements - functions - builtin functions with prefix - add test file --- tests/query/highlights/nix/test.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/query/highlights/nix/test.nix (limited to 'tests') 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 +} -- cgit v1.2.3-70-g09d2