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

This commit is contained in:
pacien 2024-11-20 23:14:56 +01:00 committed by GitHub
parent 4d3612125b
commit 6ec510d58f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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