Explain something in the lexer

This commit is contained in:
wycats
2010-11-25 00:58:42 -08:00
parent 85fa2cb65f
commit 38f8ae84fe
+2 -2
View File
@@ -53,8 +53,8 @@ HandlebarsLexer.prototype.lex = function() {
this.getchar();
return "OPEN_INVERSE"
} else if(peek === "!") {
this.getchar();
this.setupLex();
this.readchar();
this.setupLex(); // reset the lexer state so the yytext is the comment only
while(this.peek(2) !== "}}") { this.getchar(); };
this.readchar(2);
this.state = "CONTENT"