Descriptive comment for lexer

This commit is contained in:
Tristan Hume
2013-07-24 12:00:51 -04:00
parent ee14775f83
commit 61a6deb43b
+1
View File
@@ -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