Skip to content

Commit 37e48f4

Browse files
pacienthe-mikedavis
authored andcommitted
queries/nix: align match start for language comments
This rule failed to override other ones because it started its matching later.
1 parent b4494e1 commit 37e48f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/queries/nix/injections.scm

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
((((comment) @injection.language) .
66
(indented_string_expression (string_fragment) @injection.content))
77
(#set! injection.combined))
8+
((binding
9+
(comment) @injection.language
10+
expression: (indented_string_expression (string_fragment) @injection.content))
11+
(#set! injection.combined))
812

913
; Common attribute keys corresponding to Python scripts,
1014
; such as those for NixOS VM tests in nixpkgs/nixos/tests.

0 commit comments

Comments
 (0)