We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aeb3b0f + c331ee1 commit 0730a19Copy full SHA for 0730a19
LuaParser/src/LuaTokenParser.cpp
@@ -1,5 +1,6 @@
1
#include "LuaParser/LuaTokenParser.h"
2
#include <limits>
3
+#include <cstdlib>
4
#include "LuaDefine.h"
5
#include "LuaParser/LuaIdentify.h"
6
#include "LuaParser/LuaTokenTypeDetail.h"
@@ -520,8 +521,9 @@ LuaTokenType LuaTokenParser::ReadNumeral()
520
521
break;
522
}
523
-
524
- if (lislalpha(GetCurrentChar())) /* is numeral touching a letter? */
+
525
+ // fix bug:这里不能使用lislalpha,否则会错误的解析下一个unicode字符
526
+ if (std::isalpha(GetCurrentChar())) /* is numeral touching a letter? */
527
{
528
// luajit
529
if (CheckNext1('U'))
0 commit comments