fix lexer comment bug

This commit is contained in:
xensik 2022-02-10 13:07:05 +01:00
parent a220b47daa
commit 99e830fb93
9 changed files with 9 additions and 9 deletions

View File

@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -281,7 +281,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -281,7 +281,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -281,7 +281,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -284,7 +284,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();

View File

@ -284,7 +284,7 @@ auto lexer::lex() -> parser::symbol_type
if (state == reader::end) if (state == reader::end)
break; break;
if (last == '\\' && curr == '\r' || curr == '\n') if (last == '\\' && (curr == '\r' || curr == '\n'))
{ {
reader_.advance(); reader_.advance();