mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
Separate ? and - into special tokens
This commit is contained in:
@@ -75,6 +75,13 @@ module Liquid
|
||||
|
||||
def variable_signature
|
||||
str = consume(:id)
|
||||
while consume?(:dash)
|
||||
str << "-".freeze
|
||||
str << consume(:id) if look(:id)
|
||||
end
|
||||
if consume?(:question)
|
||||
str << "?".freeze
|
||||
end
|
||||
if look(:open_square)
|
||||
str << consume
|
||||
str << expression
|
||||
|
||||
Reference in New Issue
Block a user