diff options
author | pacien | 2023-09-15 15:12:47 +0000 |
---|---|---|
committer | Michael Davis | 2023-09-16 20:09:07 +0000 |
commit | 37e48f4307a79cbc4e54e045584ec816bcc245a5 (patch) | |
tree | bb0850edad112c83aacf8fb3a54e38e463adb0a2 /runtime | |
parent | b4494e1dc54f342d8c765b793bf934ae730b5253 (diff) |
queries/nix: align match start for language comments
This rule failed to override other ones because it started its
matching later.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/nix/injections.scm | 4 |
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. |