Skip to content

Commit 4ac15c3

Browse files
committed
Treat blocks with raw calls as an output block
1 parent dc7e86b commit 4ac15c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/phlex/compiler/method_compiler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def compile_raw_helper(node)
280280

281281
private def output_block?(node)
282282
node.body.body.any? do |child|
283-
Prism::CallNode === child && (standard_element?(child) || void_element?(child) || plain_helper?(child) || whitespace_helper?(child))
283+
Prism::CallNode === child && (standard_element?(child) || void_element?(child) || plain_helper?(child) || whitespace_helper?(child) || raw_helper?(child))
284284
end
285285
end
286286

0 commit comments

Comments
 (0)