Fixes the json exception when using "\\" inside a string; closes #257 (#264)

This commit is contained in:
Mai-Lapyst
2023-03-19 20:00:22 +01:00
committed by GitHub
parent 8e22d8e668
commit 3741c73ba7
2 changed files with 2 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ class Lexer {
}
const char ch = m_in[pos++];
if (ch == '\\') {
escape = true;
escape = !escape;
} else if (!escape && ch == m_in[tok_start]) {
break;
} else {

View File

@@ -1198,7 +1198,7 @@ class Lexer {
}
const char ch = m_in[pos++];
if (ch == '\\') {
escape = true;
escape = !escape;
} else if (!escape && ch == m_in[tok_start]) {
break;
} else {