mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-04 01:25:14 -07:00
Descriptive comment for lexer
This commit is contained in:
@@ -8,6 +8,7 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def tokenize(input)
|
def tokenize(input)
|
||||||
|
# "foo.bar | filter: baz, qux" becomes ["foo", ".", "bar", "|", "filter", ":", "baz", ",", "qux"]
|
||||||
input.split(/\b/).map {|tok| tok.strip}
|
input.split(/\b/).map {|tok| tok.strip}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user