Skip to content

Commit

Permalink
queries/nix: align match start for language comments
Browse files Browse the repository at this point in the history
This rule failed to override other ones because it started its
matching later.
  • Loading branch information
pacien authored and mtoohey31 committed Jun 2, 2024
1 parent 38eba39 commit dd760b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/queries/nix/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dd760b7

Please sign in to comment.