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