1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 11:55:40 +02:00

Bug 485709 - Syntax coloring of qualified enumeration

Change-Id: I33c8edc024fbb23c16e9328a15ddec05eabd6124
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
This commit is contained in:
Nathan Ridge 2016-01-16 21:38:19 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent e60f8efdf3
commit 1d46897ad0
2 changed files with 16 additions and 0 deletions

View file

@ -462,4 +462,17 @@ public class SemanticHighlightingTest extends TestCase {
public void testAliasTemplates_416748() throws Exception {
makeAssertions();
}
// namespace N { //$namespace
// class C { //$class
// enum E1 {}; //$enum
// };
// C::E1 e1; //$class,enum,globalVariable
// enum E2 {}; //$enum
// }
// N::C::E1 e1; //$namespace,class,enum,globalVariable
// N::E2 e2; //$namespace,enum,globalVariable
public void testQualifiedEnum_XXXXXX() throws Exception {
makeAssertions();
}
}

View file

@ -998,6 +998,9 @@ public class SemanticHighlightings {
public boolean consumes(ISemanticToken token) {
IASTNode node= token.getNode();
if (node instanceof IASTName) {
if (node instanceof ICPPASTQualifiedName) {
return false;
}
IBinding binding= token.getBinding();
if (binding instanceof IEnumeration) {
return true;