Merge pull request #252 from fivesixty/master

Allow empty line to be a matching state.
This commit is contained in:
Fabian Jakobs 2011-05-19 00:25:09 -07:00
commit 7c9d36fd5c

View file

@ -76,7 +76,7 @@ var Tokenizer = function(rules) {
var value = match[0];
for ( var i = 0; i < state.length; i++) {
if (match[i + 1]) {
if (match[i + 1] !== undefined) {
var rule = state[i];
if (typeof rule.token == "function")