fixed a bug
This commit is contained in:
parent
032bcf6493
commit
7b7a54aca5
3 changed files with 28 additions and 21 deletions
10
src/json.hpp
10
src/json.hpp
|
|
@ -2476,7 +2476,7 @@ class basic_json
|
|||
unsigned int yyaccept = 0;
|
||||
static const unsigned char yybm[] =
|
||||
{
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
0, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 192, 192, 64, 64, 192, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
|
|
@ -2650,6 +2650,10 @@ json_parser_7:
|
|||
json_parser_8:
|
||||
yyaccept = 0;
|
||||
yych = *(m_marker = ++m_cursor);
|
||||
if (yych <= 0x00)
|
||||
{
|
||||
goto json_parser_6;
|
||||
}
|
||||
goto json_parser_53;
|
||||
json_parser_9:
|
||||
++m_cursor;
|
||||
|
|
@ -2955,6 +2959,10 @@ json_parser_53:
|
|||
{
|
||||
goto json_parser_52;
|
||||
}
|
||||
if (yych <= 0x00)
|
||||
{
|
||||
goto json_parser_29;
|
||||
}
|
||||
if (yych <= '"')
|
||||
{
|
||||
goto json_parser_55;
|
||||
|
|
|
|||
|
|
@ -2514,7 +2514,7 @@ class basic_json
|
|||
// string
|
||||
quotation_mark = [\"];
|
||||
escape = [\\];
|
||||
unescaped = [^\"\\];
|
||||
unescaped = [^\"\\\000];
|
||||
escaped = escape ([\"\\/bfnrt] | [u][0-9a-fA-F]{4});
|
||||
char = unescaped | escaped;
|
||||
string = quotation_mark char* quotation_mark;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue