Skip to content

Commit 0730a19

Browse files
committed
Merge branch 'master' of github.com:CppCXY/EmmyLuaCodeStyle
2 parents aeb3b0f + c331ee1 commit 0730a19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

LuaParser/src/LuaTokenParser.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "LuaParser/LuaTokenParser.h"
22
#include <limits>
3+
#include <cstdlib>
34
#include "LuaDefine.h"
45
#include "LuaParser/LuaIdentify.h"
56
#include "LuaParser/LuaTokenTypeDetail.h"
@@ -520,8 +521,9 @@ LuaTokenType LuaTokenParser::ReadNumeral()
520521
break;
521522
}
522523
}
523-
524-
if (lislalpha(GetCurrentChar())) /* is numeral touching a letter? */
524+
525+
// fix bug:这里不能使用lislalpha,否则会错误的解析下一个unicode字符
526+
if (std::isalpha(GetCurrentChar())) /* is numeral touching a letter? */
525527
{
526528
// luajit
527529
if (CheckNext1('U'))

0 commit comments

Comments
 (0)