mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-18 21:17:08 +04:00
Add injections for GraphQL and ERB in Ruby (#10036)
This commit is contained in:
parent
c69ad7b3bf
commit
7ec509e2f9
@ -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…
Reference in New Issue
Block a user