Apply matched value to tokenizer token functions.
This commit is contained in:
parent
6b660009ad
commit
1036aaa057
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ var Tokenizer = function(rules) {
|
|||
}
|
||||
|
||||
if (typeof rule.token == "function")
|
||||
type = rule.token(match[0]);
|
||||
type = rule.token.apply(this, value);
|
||||
else
|
||||
type = rule.token;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue