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 postsolar committed Apr 4, 2024
1 parent f9bd8be commit d9c049e
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 d9c049e

Please sign in to comment.