Skip to content

Commit

Permalink
not to give COMMENT to Parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Mar 30, 2021
1 parent 6fde5bf commit 8d72fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bool Compiler_compile(ParserState *p, StreamInterface *si)
&& topToken->type == STRING_END) {
Parse(parser, STRING, ""); /* to help pareser */
}
if (topToken->type != STRING_END) {
if (topToken->type != STRING_END && topToken->type != COMMENT) {
Parse(parser, topToken->type, string);
}
if (p->error_count != 0) {
Expand Down

0 comments on commit 8d72fc5

Please sign in to comment.