lib/liquidscript/compiler/icr/literals.rb in liquidscript-0.6.3 vs lib/liquidscript/compiler/icr/literals.rb in liquidscript-0.6.4

- old
+ new

@@ -50,10 +50,11 @@ body = collect_compiles(:expression, :rbrace) code :for_in, ident, ref(obj), body end def _compile_for_seg(first) + first = value_expect(first) shift :comma second = compile_vexpression shift :comma third = compile_vexpression shift :rparen @@ -62,14 +63,12 @@ body = collect_compiles(:expression, :rbrace) code :for_seg, first, second, third, body end def compile_identifier(identifier) - default = action do - code :get, ref(identifier) - end + ref(identifier) unless peek?(:equal) - value_expect(identifier, &default) + identifier end def compile_regex code :regex, shift(:regex) end