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.
1 parent 433a473 commit d017e86Copy full SHA for d017e86
LuaParser/src/LuaTokenParser.cpp
@@ -580,11 +580,25 @@ LuaTokenType LuaTokenParser::readNumeral()
580
581
if (lislalpha(getCurrentChar())) /* is numeral touching a letter? */
582
{
583
- saveAndNext();
+ // luajit
584
+ if(checkNext1('U'))
585
+ {
586
+ if(checkNext1('U') && checkNext1('L'))
587
588
+ return TK_INT;
589
+ }
590
+ else
591
592
+ luaError("unknown integer type", TextRange(_currentParseIndex, _currentParseIndex));
593
594
595
+ else {
596
+ saveAndNext();
597
598
}
599
600
// todo error format check
-
601
+ // 实际上应该是TK_NUMBER
602
return TK_INT;
603
604
0 commit comments