injections(nix): fix runCommand*

This commit is contained in:
figsoda 2022-11-28 19:33:17 -05:00 committed by Stephan Seitz
parent 7f7b5778ff
commit a851cef248

View file

@ -28,13 +28,13 @@
(#match? @_path "^text$")) (#match? @_path "^text$"))
(apply_expression (apply_expression
(apply_expression function: (apply_expression
function: (apply_expression function: (_) @_func) function: (apply_expression function: (_) @_func))
argument: [ argument: [
(string_expression (string_fragment) @bash) (string_expression (string_fragment) @bash)
(indented_string_expression (string_fragment) @bash) (indented_string_expression (string_fragment) @bash)
]) ]
(#match? @_func "(^|\\.)runCommand(((No)?CC)?(Local)?)?$")) (#match? @_func "(^|\\.)runCommand((No)?CC)?(Local)?$"))
((apply_expression ((apply_expression
function: (apply_expression function: (_) @_func) function: (apply_expression function: (_) @_func)