mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 00:13:28 +02:00
feat(ruby): inject bash into builtin ways of running system commands (#14372)
This commit is contained in:
committed by
GitHub
parent
68f11f9324
commit
4967229e85
@@ -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"))
|
||||
|
Reference in New Issue
Block a user