mirror of https://github.com/helix-editor/helix
Add injections for GraphQL and ERB in Ruby (#10036)
parent
c69ad7b3bf
commit
7ec509e2f9
|
@ -6,3 +6,18 @@
|
||||||
(heredoc_end) @name
|
(heredoc_end) @name
|
||||||
(#set! injection.language "sql"))
|
(#set! injection.language "sql"))
|
||||||
(#eq? @name "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