Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
[CSharpBinding] Fixed 'Bug 28371 - Instances of native types are
Browse files Browse the repository at this point in the history
highlighted as keywords'.
  • Loading branch information
Mike Krüger committed Apr 20, 2015
1 parent 6cab4ec commit 8d046fb
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,20 +313,7 @@ public override void VisitIdentifierExpression (IdentifierExpression identifierE
Colorize(identifier, valueKeywordColor);
} else {
var resolveResult = resolver.Resolve (identifierExpression, cancellationToken);
if (resolveResult.Type.Namespace == "System") {
switch (resolveResult.Type.Name) {
case "nfloat":
case "nint":
case "nuint":
Colorize(identifier, "Keyword(Type)");
break;
default:
Colorize (identifier, resolveResult);
break;
}
} else {
Colorize (identifier, resolveResult);
}
Colorize (identifier, resolveResult);
}
VisitChildrenAfter(identifierExpression, identifier);
}
Expand Down

0 comments on commit 8d046fb

Please sign in to comment.