From cbc72e84d7a4c2a1ed5ec81bced3d280c69b4649 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 22 Nov 2022 21:28:17 -0600 Subject: Update tree-sitter-heex tree-sitter-heex split out the ending_expression_value from the partial_expression value which can help with indentation. --- runtime/queries/heex/injections.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/queries/heex') 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 %> ;
hello, tree-sitter!
; <% 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)) -- cgit v1.2.3-70-g09d2