aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-04-08 22:20:26 -0700
committerGitHub <noreply@github.com>2024-04-09 14:20:26 +0900
commite9321bb914b3a5a88b7dff5392f0f5f8d83bee67 (patch)
tree0a646738b6f2a23b256fe8174dbe35a84b7296bd /tests/query
parentfix(c_sharp): highlight `raw_string_literal` (diff)
downloadnvim-treesitter-e9321bb914b3a5a88b7dff5392f0f5f8d83bee67.tar
nvim-treesitter-e9321bb914b3a5a88b7dff5392f0f5f8d83bee67.tar.gz
nvim-treesitter-e9321bb914b3a5a88b7dff5392f0f5f8d83bee67.tar.bz2
nvim-treesitter-e9321bb914b3a5a88b7dff5392f0f5f8d83bee67.tar.lz
nvim-treesitter-e9321bb914b3a5a88b7dff5392f0f5f8d83bee67.tar.xz
nvim-treesitter-e9321bb914b3a5a88b7dff5392f0f5f8d83bee67.tar.zst
nvim-treesitter-e9321bb914b3a5a88b7dff5392f0f5f8d83bee67.zip
feat(nix): misc cleanups + comment injection (#6418)
* fix(nix): highlight strings within interpolations * feat(nix): move `derivation` to function.builtin * fix(nix): removes all `priority` workarounds * feat(nix): arbitrary injections using `#` comments
Diffstat (limited to 'tests/query')
-rw-r--r--tests/query/highlights/nix/test.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/query/highlights/nix/test.nix b/tests/query/highlights/nix/test.nix
index 8ab067a2e..296a5a934 100644
--- a/tests/query/highlights/nix/test.nix
+++ b/tests/query/highlights/nix/test.nix
@@ -13,4 +13,9 @@
# ^ @variable.member
# ^ @function.call
# ^ @string.special.path
+ hi = if true then 9 else throw "an error ${here + "string"}";
+ # ^ @keyword.exception
+ # ^ @string
+ # ^ @variable
+ # ^ @string
}