feat(ruby): inject bash into builtin ways of running system commands (#14372)

This commit is contained in:
Kristoffer Plagborg Bak Sørensen
2025-09-03 00:51:42 +02:00
committed by GitHub
parent 68f11f9324
commit 4967229e85

View File

@@ -21,3 +21,15 @@
(#set! injection.language "erb"))
(#eq? @name "ERB"))
; `<command>`
; %x{<command>}
(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"))