From fd431e6d570ca4a5ff573e4bf7cc5accaa408b10 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Mon, 18 Sep 2017 08:32:09 +0200 Subject: [PATCH] Fix coloring of AttributeTargets --- ILSpy/Languages/CSharpLanguage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILSpy/Languages/CSharpLanguage.cs b/ILSpy/Languages/CSharpLanguage.cs index ae1ae033d..17ea5556d 100644 --- a/ILSpy/Languages/CSharpLanguage.cs +++ b/ILSpy/Languages/CSharpLanguage.cs @@ -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);