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

pull/10039/head
Joe 2024-03-28 21:45:17 -04:00 committed by GitHub
parent c69ad7b3bf
commit 7ec509e2f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 0 deletions

View File

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