Revert "Merge pull request #476 from Shopify/missing-variable-name-error"

This reverts commit 4dc682313f, reversing
changes made to a8f60ff6b1.
This commit is contained in:
Florian Weingarten
2014-11-07 01:48:16 +00:00
parent b242a7273a
commit 9c33e9601b
2 changed files with 6 additions and 9 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ module Liquid
@filters = []
p = Parser.new(markup)
@name = Expression.parse(p.expression)
# Could be just filters with no input
@name = p.look(:pipe) ? nil : Expression.parse(p.expression)
while p.consume?(:pipe)
filtername = p.consume(:id)
filterargs = p.consume?(:colon) ? parse_filterargs(p) : []