fix lexer comment bug
This commit is contained in:
parent
a220b47daa
commit
99e830fb93
@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -281,7 +281,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -281,7 +281,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -281,7 +281,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -284,7 +284,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -282,7 +282,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
@ -284,7 +284,7 @@ auto lexer::lex() -> parser::symbol_type
|
||||
if (state == reader::end)
|
||||
break;
|
||||
|
||||
if (last == '\\' && curr == '\r' || curr == '\n')
|
||||
if (last == '\\' && (curr == '\r' || curr == '\n'))
|
||||
{
|
||||
reader_.advance();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user