diff options
author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2023-03-23 16:00:31 +0200 |
---|---|---|
committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2023-03-23 16:00:31 +0200 |
commit | 1e7d50937f4b94c37a16f6370c0fd4ccb4329190 (patch) | |
tree | 94b5752f1ae4372db08848e3020295c1de567686 /src/linguist/lupdate/cpp.cpp | |
parent | 6914f7c8039e5d9aab9446a6d0d882caf9f61025 (diff) | |
parent | 55fe27c4455eb54830bb08f19e34d8f2f137ad2f (diff) | |
download | qttools-5.15.tar.gz |
Merge remote-tracking branch 'origin/tqtc/lts-5.15.9' into tqtc/lts-5.15-opensourcev5.15.9-lts-lgpl5.15
Change-Id: I2813471aad9bc8b9bd04efe8571be6d1bee3045c
Diffstat (limited to 'src/linguist/lupdate/cpp.cpp')
-rw-r--r-- | src/linguist/lupdate/cpp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linguist/lupdate/cpp.cpp b/src/linguist/lupdate/cpp.cpp index 9fe4ed710..175b1816d 100644 --- a/src/linguist/lupdate/cpp.cpp +++ b/src/linguist/lupdate/cpp.cpp @@ -887,7 +887,7 @@ CppParser::TokenType CppParser::getToken() if (yyCh == 'x') { do { yyCh = getChar(); - } while ((yyCh >= '0' && yyCh <= '9') + } while ((yyCh >= '0' && yyCh <= '9') || yyCh == '\'' || (yyCh >= 'a' && yyCh <= 'f') || (yyCh >= 'A' && yyCh <= 'F')); return Tok_Integer; } @@ -905,7 +905,7 @@ CppParser::TokenType CppParser::getToken() case '9': do { yyCh = getChar(); - } while (yyCh >= '0' && yyCh <= '9'); + } while ((yyCh >= '0' && yyCh <= '9') || yyCh == '\''); return Tok_Integer; default: yyCh = getChar(); |