Add range support

This commit is contained in:
Tristan Hume
2013-07-29 13:25:48 -04:00
parent 8f4b398c7a
commit 525e1ff195

View File

@@ -50,7 +50,7 @@ module Liquid
def expression
token = @tokens[@p]
if token[0] == :id
str = if token[0] == :id
variable_signature
elsif [:string, :number].include? token[0]
consume
@@ -58,6 +58,13 @@ module Liquid
else
raise SyntaxError, "#{token} is not a valid expression."
end
if look(:dot) && look(:dot, 1)
@p += 2
str + expression
else
str
end
end
def argument