queries/nix: add injections for nim writers (#11837)

pull/11948/merge
pacien 1 day ago committed by GitHub
parent 4d3612125b
commit 6ec510d58f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save