Skip to content

Commit

Permalink
queries/nix: add injections for nim writers (#11837)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacien authored Nov 20, 2024
1 parent 4d36121 commit 6ec510d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions runtime/queries/nix/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@
(#set! injection.language "haskell")
(#set! injection.combined))

; pkgs.writers.writeNim[Bin] name attrs content
(apply_expression
(apply_expression
function: (apply_expression
function: ((_) @_func)))
argument: (indented_string_expression (string_fragment) @injection.content)
(#match? @_func "(^|\\.)writeNim(Bin)?$")
(#set! injection.language "nim")
(#set! injection.combined))

; pkgs.writers.writeJS[Bin] name attrs content
(apply_expression
(apply_expression
Expand Down

0 comments on commit 6ec510d

Please sign in to comment.