aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2023-09-15 15:12:47 +0000
committerMichael Davis2023-09-16 20:09:07 +0000
commit37e48f4307a79cbc4e54e045584ec816bcc245a5 (patch)
treebb0850edad112c83aacf8fb3a54e38e463adb0a2
parentb4494e1dc54f342d8c765b793bf934ae730b5253 (diff)
queries/nix: align match start for language comments
This rule failed to override other ones because it started its matching later.
-rw-r--r--runtime/queries/nix/injections.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/queries/nix/injections.scm b/runtime/queries/nix/injections.scm
index 03a6dc36..9804b75b 100644
--- a/runtime/queries/nix/injections.scm
+++ b/runtime/queries/nix/injections.scm
@@ -5,6 +5,10 @@
((((comment) @injection.language) .
(indented_string_expression (string_fragment) @injection.content))
(#set! injection.combined))
+((binding
+ (comment) @injection.language
+ expression: (indented_string_expression (string_fragment) @injection.content))
+ (#set! injection.combined))
; Common attribute keys corresponding to Python scripts,
; such as those for NixOS VM tests in nixpkgs/nixos/tests.