File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -581,9 +581,9 @@ LuaTokenType LuaTokenParser::readNumeral()
581581 if (lislalpha (getCurrentChar ())) /* is numeral touching a letter? */
582582 {
583583 // luajit
584- if (checkNext1 (' U' ))
584+ if (checkNext1 (' U' ))
585585 {
586- if (checkNext1 (' L' ) && checkNext1 (' L' ))
586+ if (checkNext1 (' L' ) && checkNext1 (' L' ))
587587 {
588588 return TK_INT;
589589 }
@@ -592,7 +592,8 @@ LuaTokenType LuaTokenParser::readNumeral()
592592 luaError (" unknown integer type" , TextRange (_currentParseIndex, _currentParseIndex));
593593 }
594594 }
595- else {
595+ else
596+ {
596597 saveAndNext ();
597598 }
598599 }
@@ -709,6 +710,15 @@ void LuaTokenParser::readString(int del)
709710 }
710711 goto no_save;
711712 }
713+ case ' \r ' :
714+ case ' \n ' :
715+ {
716+ if (currentIsNewLine ())
717+ {
718+ incLinenumber ();
719+ }
720+ goto no_save;
721+ }
712722 }
713723 break ;
714724 }
You can’t perform that action at this time.
0 commit comments