@@ -0,0 +1,21 @@
1+; https://github.com/connorlay/tree-sitter-heex/blob/592e22292a367312c35e13de7fdb888f029981d6/queries/injections.scm
2+; directives are standalone tags like '<%= @x %>'
3+;
4+; partial_expression_values are elixir code that is part of an expression that
5+; spans multiple directive nodes, so they must be combined. For example:
6+; <%= if true do %>
7+; <p>hello, tree-sitter!</p>
8+; <% end %>
9+((directive (partial_expression_value) @injection.content)
10+ (#set! injection.language "elixir")
11+ (#set! injection.include-children)
12+ (#set! injection.combined))
13+
14+; Regular expression_values do not need to be combined
15+((directive (expression_value) @injection.content)
16+ (#set! injection.language "elixir"))
17+
18+; expressions live within HTML tags, and do not need to be combined
19+; <link href={ Routes.static_path(..) } />
20+((expression (expression_value) @injection.content)
21+ (#set! injection.language "elixir"))