From a851cef248f8a69fa644b04bba0cc308c632de63 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 28 Nov 2022 19:33:17 -0500 Subject: [PATCH] injections(nix): fix runCommand* --- queries/nix/injections.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/queries/nix/injections.scm b/queries/nix/injections.scm index 3b32b0eae..9765033a4 100644 --- a/queries/nix/injections.scm +++ b/queries/nix/injections.scm @@ -28,13 +28,13 @@ (#match? @_path "^text$")) (apply_expression - (apply_expression - function: (apply_expression function: (_) @_func) - argument: [ - (string_expression (string_fragment) @bash) - (indented_string_expression (string_fragment) @bash) - ]) - (#match? @_func "(^|\\.)runCommand(((No)?CC)?(Local)?)?$")) + function: (apply_expression + function: (apply_expression function: (_) @_func)) + argument: [ + (string_expression (string_fragment) @bash) + (indented_string_expression (string_fragment) @bash) + ] + (#match? @_func "(^|\\.)runCommand((No)?CC)?(Local)?$")) ((apply_expression function: (apply_expression function: (_) @_func)