[IDE] Give @attributes their own dedicated SyntaxNodeKind::Attribute.

Swift SVN r12138
This commit is contained in:
Sonny Falk
2014-01-10 22:23:42 +00:00
parent 673a65c2a5
commit d1f0d9f7c6
2 changed files with 3 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ SyntaxModelContext::SyntaxModelContext(SourceManager &SM, unsigned BufferID,
// It's a known attribute, so treat it as a keyword for syntax coloring.
Loc = AttrLoc;
Length = SM.getByteDistance(Loc, Tok.getLoc()) + Tok.getLength();
Kind = SyntaxNodeKind::Keyword;
Kind = SyntaxNodeKind::Attribute;
}
AttrLoc = SourceLoc();
}