Lexer: Support Microsoft suffix (u)i64

MSVC2010 supports all combinations of upper- and lowercase U/I.

Task-number: QTCREATORBUG-15554
Change-Id: I0106e6b5038a62aebe5a6c1eb0467d693befb4b0
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Andre Hartmann
2015-12-30 16:47:12 +01:00
committed by André Hartmann
parent f539ff1fcf
commit 369b1f7f38
2 changed files with 35 additions and 0 deletions

View File

@@ -853,6 +853,17 @@ bool Lexer::scanOptionalIntegerSuffix(bool allowU)
scanOptionalIntegerSuffix(false);
}
return true;
case 'i':
case 'I':
yyinp();
if (_yychar == '6') {
yyinp();
if (_yychar == '4') {
yyinp();
return true;
}
}
return false;
case 'l':
yyinp();
if (_yychar == 'l')