From 6ec510d58fddd907324e06b7475c81b21d0782f4 Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 20 Nov 2024 23:14:56 +0100 Subject: [PATCH] queries/nix: add injections for nim writers (#11837) --- runtime/queries/nix/injections.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/runtime/queries/nix/injections.scm b/runtime/queries/nix/injections.scm index 9804b75be..2fb8918a7 100644 --- a/runtime/queries/nix/injections.scm +++ b/runtime/queries/nix/injections.scm @@ -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