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

Loading…
Cancel
Save