diff options
Diffstat (limited to 'queries/ruby/injections.scm')
| -rw-r--r-- | queries/ruby/injections.scm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/queries/ruby/injections.scm b/queries/ruby/injections.scm index 8e2456b39..6981808c5 100644 --- a/queries/ruby/injections.scm +++ b/queries/ruby/injections.scm @@ -1,9 +1,12 @@ -(comment) @comment +((comment) @injection.content + (#set! injection.language "comment")) (heredoc_body - (heredoc_content) @content - (heredoc_end) @language - (#set! "language" @language) + (heredoc_content) @injection.content + (heredoc_end) @injection.language + (#set! "language" @injection.language) (#downcase! "language")) -(regex (string_content) @regex) +(regex + (string_content) @injection.content + (#set! injection.language "regex")) |
