mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IDE] Give @attributes their own dedicated SyntaxNodeKind::Attribute.
Swift SVN r12138
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user