From 989a2c49c8f65fdd61760c875fa8adb2bbb27a52 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 30 May 2015 10:14:53 +0200 Subject: [PATCH] Write attribute target as keyword instead of identifier --- .../OutputVisitor/CSharpOutputVisitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs b/NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs index b458ff149..1d0f77494 100644 --- a/NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs +++ b/NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs @@ -1160,7 +1160,7 @@ namespace ICSharpCode.NRefactory.CSharp StartNode(attributeSection); WriteToken(Roles.LBracket); if (!string.IsNullOrEmpty(attributeSection.AttributeTarget)) { - WriteIdentifier(attributeSection.AttributeTargetToken); + WriteKeyword(attributeSection.AttributeTarget, Roles.Identifier); WriteToken(Roles.Colon); Space(); }