aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/heex
diff options
context:
space:
mode:
authorMichael Davis2022-11-23 03:28:17 +0000
committerBlaž Hrastnik2022-11-24 02:07:05 +0000
commitcbc72e84d7a4c2a1ed5ec81bced3d280c69b4649 (patch)
tree4b1d894d5312d6d92cc393bf8320a810fc6024ca /runtime/queries/heex
parent5a1bed2b708f6874daa9f04b26b14b3106d2e447 (diff)
Update tree-sitter-heex
tree-sitter-heex split out the ending_expression_value from the partial_expression value which can help with indentation.
Diffstat (limited to 'runtime/queries/heex')
-rw-r--r--runtime/queries/heex/injections.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/queries/heex/injections.scm b/runtime/queries/heex/injections.scm
index d97e4b3e..159b6f0e 100644
--- a/runtime/queries/heex/injections.scm
+++ b/runtime/queries/heex/injections.scm
@@ -6,7 +6,11 @@
; <%= if true do %>
; <p>hello, tree-sitter!</p>
; <% end %>
-((directive (partial_expression_value) @injection.content)
+((directive
+ [
+ (partial_expression_value)
+ (ending_expression_value)
+ ] @injection.content)
(#set! injection.language "elixir")
(#set! injection.include-children)
(#set! injection.combined))