Browse Source

Fix coloring of AttributeTargets

pull/863/head
Siegfried Pammer 8 years ago
parent
commit
fd431e6d57
  1. 2
      ILSpy/Languages/CSharpLanguage.cs

2
ILSpy/Languages/CSharpLanguage.cs

@ -759,7 +759,7 @@ namespace ICSharpCode.ILSpy
color = gotoKeywordsColor; color = gotoKeywordsColor;
break; break;
} }
if (Roles.AttributeTargetRole == role) if (nodeStack.PeekOrDefault() is AttributeSection)
color = attributeKeywordsColor; color = attributeKeywordsColor;
if (color != null) { if (color != null) {
textOutput.BeginSpan(color); textOutput.BeginSpan(color);

Loading…
Cancel
Save