diff options
-rw-r--r-- | runtime/queries/ruby/injections.scm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/queries/ruby/injections.scm b/runtime/queries/ruby/injections.scm index 1a865df1..3e0d8bb8 100644 --- a/runtime/queries/ruby/injections.scm +++ b/runtime/queries/ruby/injections.scm @@ -6,3 +6,18 @@ (heredoc_end) @name (#set! injection.language "sql")) (#eq? @name "SQL")) + +((heredoc_body + (heredoc_content) @injection.content + (heredoc_end) @name + (#set! injection.language "graphql")) + (#any-of? @name + "GQL" + "GRAPHQL")) + +((heredoc_body + (heredoc_content) @injection.content + (heredoc_end) @name + (#set! injection.language "erb")) + (#eq? @name "ERB")) + |