Skip to content

(5.9) attributes incorrectly highlighted as identifiers #785

@tayloraswift

Description

@tayloraswift

in the current 5.9 nightlies, attributes such as @frozen, @inlinable, etc. are incorrectly highlighted as identifiers rather than keywords/attributes. this is a regression from 5.8.

VSCode screenshot:

image

the identifier coloring is visually jarring and cannot be overridden by changing syntax theme definitions, as they are semantically labeled as identifiers.

please note that the textmate scope classification, while correct, is irrelevant here, as syntax highlight colors are determined entirely from semantic token type.

$ swift --version
Swift version 5.9-dev (LLVM ea47328e7cf304e, Swift 9c3928cc0c738b5)
Target: x86_64-unknown-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions