diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2015-12-30 16:47:12 +0100 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2016-01-12 05:56:50 +0000 |
commit | 369b1f7f38ab81ba216e03fc724925db8f1b11ed (patch) | |
tree | f41808ce20c3eda90512a4146294c0ac9a2600a6 /src/libs/3rdparty/cplusplus/Lexer.cpp | |
parent | f539ff1fcff62abbab464b5898ae658a13299766 (diff) |
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>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Lexer.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Lexer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/Lexer.cpp b/src/libs/3rdparty/cplusplus/Lexer.cpp index ac0b4a7ed6..db7cb9e0f8 100644 --- a/src/libs/3rdparty/cplusplus/Lexer.cpp +++ b/src/libs/3rdparty/cplusplus/Lexer.cpp @@ -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') |