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 Schuyler Mortimer committed Jul 10, 2024
1 parent 1855cc7 commit b648ddd
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 b648ddd

Please sign in to comment.