Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ruby: Add a new injection for regular expressions (#12533)

Vitaly Slobodin356fcec337a7
diff --git a/extensions/ruby/languages/ruby/injections.scm b/extensions/ruby/languages/ruby/injections.scm
index 516f30a812e..3ad8143b858 100644
--- a/extensions/ruby/languages/ruby/injections.scm
+++ b/extensions/ruby/languages/ruby/injections.scm
@@ -2,3 +2,7 @@
(heredoc_content) @content
(heredoc_end) @language
(#downcase! @language))
+
+((regex
+ (string_content) @content)
+ (#set! "language" "regex"))