lib/liquidscript/compiler/icr/expressions.rb in liquidscript-0.1.5 vs lib/liquidscript/compiler/icr/expressions.rb in liquidscript-0.2.0
- old
+ new
@@ -17,15 +17,16 @@
def compile_vexpression
out = expect :number, :identifier,
:dstring, :lparen,
:sstring, :operator,
:keyword, :unop,
+ :newline,
:lbrack => :object,
:lbrace => :array,
:arrow => :function
if peek? :binop
- compile_binop out
+ compile_binop(out)
elsif peek? :prop
compile_property(out)
else
out
end