Skip to content

Commit 49b11f7

Browse files
committed
glayzzle#138 - use the new lex helper
1 parent 14d643d commit 49b11f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/comment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
null,
1616
this
1717
);
18-
this.token = this.lexer.lex() || this.EOF;
18+
this.lex();
1919
return result(text);
2020
},
2121
/**
@@ -24,7 +24,7 @@ module.exports = {
2424
read_doc_comment: function() {
2525
const result = this.ast.prepare("commentblock", null, this);
2626
const text = this.text();
27-
this.token = this.lexer.lex() || this.EOF;
27+
this.lex();
2828
return result(text);
2929
}
3030
};

0 commit comments

Comments
 (0)