Skip to content

Commit

Permalink
Return newline after comments. (lcompilers#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshanshbhatt committed Jun 16, 2022
1 parent ae9b7a4 commit 76f7ec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lpython/parser/tokenizer.re
Expand Up @@ -356,6 +356,7 @@ int Tokenizer::lex(Allocator &al, YYSTYPE &yylval, Location &loc, diag::Diagnost
// Tokens
newline {
if(cur[0] == '#') { RET(TK_NEWLINE); }
if(parenlevel) { continue; }
if (last_token == yytokentype::TK_COLON
|| colon_actual_last_token) {
Expand Down

0 comments on commit 76f7ec6

Please sign in to comment.