aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/Token.cpp
diff options
context:
space:
mode:
authorAnton Kalmykov <anton.kalmykov@gmail.com>2014-06-21 14:31:06 +0400
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-06-24 15:44:13 +0200
commit496cfdd21d6a7f862d7909a311f4bae8c3e18ec3 (patch)
tree7fb8ce506077ca4958686479deb76f5bd96cfcf9 /src/libs/3rdparty/cplusplus/Token.cpp
parent2982a763ac69043400e624c2c199344be2b2ba6f (diff)
Add syntax highlight for primitive data types
Syntax highlight rules for keywords are changed to highlight control keywords and primitive data types separately. Change-Id: Ifb25be7a97b92589030aa190641320c233dc7f2d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Token.cpp')
-rw-r--r--src/libs/3rdparty/cplusplus/Token.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/libs/3rdparty/cplusplus/Token.cpp b/src/libs/3rdparty/cplusplus/Token.cpp
index 8be6757131..2f6ce3d608 100644
--- a/src/libs/3rdparty/cplusplus/Token.cpp
+++ b/src/libs/3rdparty/cplusplus/Token.cpp
@@ -46,21 +46,20 @@ const char *token_names[] = {
("|="), ("||"), ("+"), ("+="), ("++"), ("#"), ("##"), ("?"), ("}"),
("]"), (")"), (";"), ("*"), ("*="), ("~"), ("~="),
- ("alignas"), ("alignof"), ("asm"), ("auto"), ("bool"), ("break"), ("case"), ("catch"),
- ("char"), ("char16_t"), ("char32_t"),
+ ("alignas"), ("alignof"), ("asm"), ("auto"), ("break"), ("case"), ("catch"),
("class"), ("const"), ("const_cast"), ("constexpr"), ("continue"),
("decltype"), ("default"),
- ("delete"), ("do"), ("double"), ("dynamic_cast"), ("else"), ("enum"),
- ("explicit"), ("export"), ("extern"), ("false"), ("float"), ("for"),
- ("friend"), ("goto"), ("if"), ("inline"), ("int"), ("long"),
+ ("delete"), ("do"), ("dynamic_cast"), ("else"), ("enum"),
+ ("explicit"), ("export"), ("extern"), ("false"), ("for"),
+ ("friend"), ("goto"), ("if"), ("inline"),
("mutable"), ("namespace"), ("new"), ("noexcept"),
("nullptr"), ("operator"), ("private"),
("protected"), ("public"), ("register"), ("reinterpret_cast"),
- ("return"), ("short"), ("signed"), ("sizeof"), ("static"),("static_assert"),
+ ("return"), ("sizeof"), ("static"), ("static_assert"),
("static_cast"), ("struct"), ("switch"), ("template"), ("this"), ("thread_local"),
("throw"), ("true"), ("try"), ("typedef"), ("typeid"), ("typename"),
- ("union"), ("unsigned"), ("using"), ("virtual"), ("void"),
- ("volatile"), ("wchar_t"), ("while"),
+ ("union"), ("using"), ("virtual"),
+ ("volatile"), ("while"),
// gnu
("__attribute__"), ("__thread"), ("__typeof__"),
@@ -72,6 +71,10 @@ const char *token_names[] = {
("@protected"), ("@protocol"), ("@public"), ("@required"), ("@selector"),
("@synchronized"), ("@synthesize"), ("@throw"), ("@try"),
+ // Primitive types
+ ("bool"), ("char"), ("char16_t"), ("char32_t"), ("double"), ("float"), ("int"),
+ ("long"), ("short"), ("signed"), ("unsigned"), ("void"), ("wchar_t"),
+
// Qt keywords
("emit"), ("SIGNAL"), ("SLOT"), ("Q_SIGNAL"), ("Q_SLOT"), ("signals"), ("slots"),
("Q_FOREACH"), ("Q_D"), ("Q_Q"),