Revert "fix(lexer): lexing_mode depending on quote"
This reverts commit ed4c3d475c.
This commit is contained in:
parent
ed4c3d475c
commit
95da4a56fa
1 changed files with 4 additions and 14 deletions
|
|
@ -270,13 +270,8 @@ struct token *peek_token(void)
|
||||||
|
|
||||||
while (i < remaining_chars)
|
while (i < remaining_chars)
|
||||||
{
|
{
|
||||||
// true if encountered a quotes of any type at stream[i]
|
// true if we didn't encounter a quotes of any type at stream[i]
|
||||||
if (update_lexing_mode(stream, i, &lexing_mode))
|
if (!update_lexing_mode(stream, i, &lexing_mode))
|
||||||
{
|
|
||||||
i++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (is_special_char(stream[i]))
|
if (is_special_char(stream[i]))
|
||||||
{
|
{
|
||||||
|
|
@ -314,13 +309,8 @@ struct token *pop_token(void)
|
||||||
|
|
||||||
while (i < remaining_chars)
|
while (i < remaining_chars)
|
||||||
{
|
{
|
||||||
// true if encountered a quotes of any type at stream[i]
|
// true if we didn't encounter a quotes of any type at stream[i]
|
||||||
if (update_lexing_mode(stream, i, &lexing_mode))
|
if (!update_lexing_mode(stream, i, &lexing_mode))
|
||||||
{
|
|
||||||
i++;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (is_special_char(stream[i]))
|
if (is_special_char(stream[i]))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue