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:
parent
e60f8efdf3
commit
1d46897ad0
2 changed files with 16 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue