swift-syntax
swift-syntax copied to clipboard
Don't declare attribute names as keywords
They were declared as Keyword
only for TokenSpecs
(DeclarationAttributeWithSpecialSyntax and TypeAttribute), the attribute names are always parsed as TypeSyntax
so those keywords weren't even appear in the parsed syntax tree.
Instead, make those TokenSpecSet
to accept .identifier
lexemes with specific token text.