mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-17 01:40:42 -07:00
Extract Parser#string out of Expression.parse
This commit is contained in:
+11
-1
@@ -48,7 +48,17 @@ module Liquid
|
||||
end
|
||||
|
||||
def expression
|
||||
parse_expression(expression_string)
|
||||
token = @tokens[@p]
|
||||
case token[0]
|
||||
when :string
|
||||
string
|
||||
else
|
||||
parse_expression(expression_string)
|
||||
end
|
||||
end
|
||||
|
||||
def string
|
||||
consume(:string)[1..-2]
|
||||
end
|
||||
|
||||
def argument_string
|
||||
|
||||
Reference in New Issue
Block a user