From 4967229e85b605310db66d91fd3833877f8c7f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Plagborg=20Bak=20S=C3=B8rensen?= <57013304+kpbaks@users.noreply.github.com> Date: Wed, 3 Sep 2025 00:51:42 +0200 Subject: [PATCH] feat(ruby): inject bash into builtin ways of running system commands (#14372) --- runtime/queries/ruby/injections.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/runtime/queries/ruby/injections.scm b/runtime/queries/ruby/injections.scm index 3e0d8bb8..b87ea8cb 100644 --- a/runtime/queries/ruby/injections.scm +++ b/runtime/queries/ruby/injections.scm @@ -21,3 +21,15 @@ (#set! injection.language "erb")) (#eq? @name "ERB")) +; `` +; %x{} +(subshell + (string_content) @injection.content + (#set! injection.language "bash")) + +(call + method: (identifier) @_method (#any-of? @_method "system" "spawn" "exec") + arguments: (argument_list + (string + (string_content) @injection.content)) + (#set! injection.language "bash")) -- 2.51.2