diff options
author | Joe | 2024-03-29 01:45:17 +0000 |
---|---|---|
committer | GitHub | 2024-03-29 01:45:17 +0000 |
commit | 7ec509e2f9a054eb814789ac34f4222bebb67230 (patch) | |
tree | f3d27a9b3f800e4a17c2b33900477b352a69db42 /runtime/queries/ruby | |
parent | c69ad7b3bf53e79807b053dce03ffbac73ba34cf (diff) |
Add injections for GraphQL and ERB in Ruby (#10036)
Diffstat (limited to 'runtime/queries/ruby')
-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")) + |