Add injections for GraphQL and ERB in Ruby (#10036)
This commit is contained in:
parent
c69ad7b3bf
commit
7ec509e2f9
1 changed files with 15 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue