Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Floby committed Apr 14, 2011
1 parent fe28a79 commit 1551ca5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ Tokenizer.prototype.addRule = function addRule(regex, type) {
this._regexes.push({regex:regex,type:type});
};

/**
* set some tokens to be ignored. these won't be emitted
*/
Tokenizer.prototype.ignore = function ignore(ignored) {
if(typeof ignore === 'array') {
for (var i = 0; i < ignored.length; ++i) {
Expand Down

0 comments on commit 1551ca5

Please sign in to comment.