mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
...
This commit is contained in:
parent
925679a040
commit
81feb7a245
@ -64,7 +64,6 @@ inline const float kTypeAttrLoadFactor = 0.5f;
|
||||
#pragma warning (disable:4101)
|
||||
#pragma warning (disable:4244)
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||
#define strdup _strdup
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
@ -394,7 +394,7 @@ struct Lexer {
|
||||
}
|
||||
}
|
||||
SyntaxError("invalid special token");
|
||||
}
|
||||
} return false;
|
||||
case '%': add_token_2('=', TK("%"), TK("%=")); return true;
|
||||
case '&': add_token_2('=', TK("&"), TK("&=")); return true;
|
||||
case '|': add_token_2('=', TK("|"), TK("|=")); return true;
|
||||
@ -481,8 +481,8 @@ struct Lexer {
|
||||
switch (eat_name())
|
||||
{
|
||||
case 0: break;
|
||||
case 1: SyntaxError("invalid char: " + std::string(1, c));
|
||||
case 2: SyntaxError("invalid utf8 sequence: " + std::string(1, c));
|
||||
case 1: SyntaxError("invalid char: " + std::string(1, c)); break;
|
||||
case 2: SyntaxError("invalid utf8 sequence: " + std::string(1, c)); break;
|
||||
case 3: SyntaxError("@id contains invalid char"); break;
|
||||
case 4: SyntaxError("invalid JSON token"); break;
|
||||
default: FATAL_ERROR();
|
||||
|
Loading…
x
Reference in New Issue
Block a user