swift-syntax icon indicating copy to clipboard operation
swift-syntax copied to clipboard

Don't declare attribute names as keywords

Open rintaro opened this issue 1 year ago • 4 comments

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.

rintaro avatar Feb 07 '24 23:02 rintaro