Debugger: Minor syntax highlighter fixes.
- Add missing if/else keywords. - Add missing comma that was preventing some keywords from being recognized properly. - Add missing handling of condition operator.
This commit is contained in:
parent
db1df758b8
commit
cbd3910d6d
|
@ -34,6 +34,7 @@ static const char* kLanguageKeywords[] = {
|
|||
"do",
|
||||
"double",
|
||||
"dynamic_cast",
|
||||
"else",
|
||||
"enum",
|
||||
"explicit",
|
||||
"extern",
|
||||
|
@ -41,6 +42,7 @@ static const char* kLanguageKeywords[] = {
|
|||
"float",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
"inline",
|
||||
"int",
|
||||
"long",
|
||||
|
@ -74,7 +76,7 @@ static const char* kLanguageKeywords[] = {
|
|||
"using",
|
||||
"virtual",
|
||||
"void",
|
||||
"volatile"
|
||||
"volatile",
|
||||
"while"
|
||||
};
|
||||
|
||||
|
@ -346,6 +348,7 @@ CLanguageFamilySyntaxHighlightInfo::_MapTokenToSyntaxType(const Token& token)
|
|||
case TOKEN_LT:
|
||||
case TOKEN_LE:
|
||||
case TOKEN_MEMBER_PTR:
|
||||
case TOKEN_CONDITION:
|
||||
case TOKEN_COLON:
|
||||
case TOKEN_SEMICOLON:
|
||||
case TOKEN_BACKSLASH:
|
||||
|
|
|
@ -376,6 +376,12 @@ Tokenizer::_ParseOperator()
|
|||
length = 1;
|
||||
break;
|
||||
|
||||
|
||||
case '?':
|
||||
type = TOKEN_CONDITION;
|
||||
length = 1;
|
||||
break;
|
||||
|
||||
case '.':
|
||||
type = TOKEN_MEMBER_PTR;
|
||||
length = 1;
|
||||
|
|
|
@ -58,6 +58,7 @@ enum {
|
|||
TOKEN_LE,
|
||||
|
||||
TOKEN_BACKSLASH,
|
||||
TOKEN_CONDITION,
|
||||
TOKEN_COLON,
|
||||
TOKEN_SEMICOLON,
|
||||
TOKEN_COMMA,
|
||||
|
|
Loading…
Reference in New Issue