lib/liquid/parser.rb in locomotivecms-liquid-2.6.0 vs lib/liquid/parser.rb in locomotivecms-liquid-4.0.0.alpha
- old
+ new
@@ -64,13 +64,14 @@
def argument
str = ""
# might be a keyword argument (identifier: expression)
if look(:id) && look(:colon, 1)
- str << consume << consume << ' '
+ str << consume << consume << ' '.freeze
end
str << expression
+ str
end
def variable_signature
str = consume(:id)
if look(:open_square)