Extract Parser#string out of Expression.parse

This commit is contained in:
Charles-P. Clermont
2026-01-26 16:52:17 -05:00
parent 85d73e462d
commit 2a86852eb3
2 changed files with 19 additions and 1 deletions
+11 -1
View File
@@ -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