Explain something in the lexer
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user