diff --git a/extensions/ruby/languages/ruby/injections.scm b/extensions/ruby/languages/ruby/injections.scm index 516f30a812..3ad8143b85 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"))