We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36773a1 commit 8d1fde8Copy full SHA for 8d1fde8
tokenizer.js
@@ -23,13 +23,12 @@ function tokenize(str, options) {
23
var code;
24
var currtoken;
25
26
- var char = function() { return str.charCodeAt(i); };
27
var next = function(num) { if(num === undefined) num = 1; return str.charCodeAt(i+num); };
28
var consume = function(num) {
29
if(num === undefined)
30
num = 1;
31
i += num;
32
- code = char();
+ code = str.charCodeAt(i);
33
//console.log('Consume '+i+' '+String.fromCharCode(code) + ' 0x' + code.toString(16));
34
return true;
35
};
0 commit comments