Add injections for GraphQL and ERB in Ruby (#10036)

pull/10039/head
Joe 2 months ago committed by GitHub
parent c69ad7b3bf
commit 7ec509e2f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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"))

Loading…
Cancel
Save