Skip to content

Commit

Permalink
Add injections for GraphQL and ERB in Ruby (helix-editor#10036)
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrilim authored and mtoohey31 committed Jun 2, 2024
1 parent 6350656 commit fda8d7f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions runtime/queries/ruby/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

0 comments on commit fda8d7f

Please sign in to comment.