Improved the highlighting of qualified ids.

This commit is contained in:
Roberto Raggi
2009-04-30 17:26:16 +02:00
parent d95dd54fa8
commit 4c4df832de

View File

@@ -218,15 +218,11 @@ protected:
_selections.append(sel);
}
void highlight(AST::UiQualifiedId *qualifiedId)
void highlight(AST::UiQualifiedId *id)
{
AST::UiQualifiedId *last = qualifiedId;
for (; last; last = last->next) {
if (! last->next)
break;
for (; id; id = id->next) {
highlight(id->identifierToken.begin(), id->identifierToken.end());
}
highlight(qualifiedId->identifierToken.begin(),
last->identifierToken.end());
}
virtual bool visit(AST::UiScriptBinding *node)