forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Nikolai Kosjar
parent
2982a763ac
commit
496cfdd21d
19
src/libs/3rdparty/cplusplus/Token.cpp
vendored
19
src/libs/3rdparty/cplusplus/Token.cpp
vendored
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user