lib/liquidscript/compiler/icr/helpers.rb in liquidscript-0.9.2 vs lib/liquidscript/compiler/icr/helpers.rb in liquidscript-0.10.0
- old
+ new
@@ -18,19 +18,20 @@
def _compile_block
if peek?(:lbrace)
shift :lbrace
collect_compiles(:expression, :rbrace)
else
- compile_expression
+ [compile_expression]
end
end
def value_expect(v, &default)
out = expect \
:lparen => action { compile_call(v) },
:equal => action { compile_assignment(v) },
:prop => action { compile_property(v) },
:lbrack => action { compile_access(v) },
+ :range => action { |_| compile_range(v) },
[:binop,
:minus,
:plus] => action { compile_binop(v) },
:unop => action { |o| code :op, v, o },
:_ => default || action { v }