This commit is contained in:
wycats
2010-12-04 22:26:23 -05:00
parent 4db1abcd74
commit 35b4d9fd01
8 changed files with 88 additions and 62 deletions
+4 -4
View File
@@ -30,7 +30,7 @@ Handlebars.Lexer.prototype = {
this.matched += chr;
this.match += chr;
if(chr === "\n") this.yylineno++;
if(chr === "\n") { this.yylineno++; }
this.input = this.input.slice(1);
}
@@ -43,7 +43,7 @@ Handlebars.Lexer.prototype = {
for(var i=0; i<n; i++) {
chr = this.input[i];
if(chr === "\n") this.yylineno++;
if(chr === "\n") { this.yylineno++; }
this.matched += chr;
this.match += chr;
@@ -78,7 +78,7 @@ Handlebars.Lexer.prototype = {
var pre = this.pastInput();
var c = new Array(pre.length + 1 + this.readchars).join("-");
return pre + this.upcomingInput() + "\n" + c+"^";
},
}
};
Handlebars.Visitor = function() {};
@@ -87,7 +87,7 @@ Handlebars.Visitor.prototype = {
accept: function(object) {
return this[object.type](object);
}
}
};
// END(BROWSER)
exports.Lexer = Handlebars.Lexer;