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 the-mikedavis committed Sep 16, 2023
1 parent b4494e1 commit 37e48f4
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 37e48f4

Please sign in to comment.