Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-9873] @unknown attribute not syntax highlighted in Xcode 10.2 #52279

Closed
swift-ci opened this issue Feb 6, 2019 · 2 comments
Closed

[SR-9873] @unknown attribute not syntax highlighted in Xcode 10.2 #52279

swift-ci opened this issue Feb 6, 2019 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Feb 6, 2019

Previous ID SR-9873
Radar rdar://problem/47855035
Original Reporter bzamayo (JIRA User)
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

Xcode 10.2 beta (seed 2 and seed 1)

Additional Detail from JIRA
Votes 1
Component/s Source Tooling
Labels Bug
Assignee @rintaro
Priority Medium

md5: 6d195e7031d50061a0b8d7b08d0643c2

Issue Description:

The new `@unknown` attribute for non-exhaustive enums does not syntax highlight correctly in Xcode 10.2.

This can be reproduced in a new Swift Xcode project, switching over an enum and adding the `@unknown` attribute to the `default` case of the switch. As shown in the screenshot attachment, it renders as plain text black rather than the keyword colour tint. ![](Screenshot 2019-02-06 at 11.01.15.PNG)

@rintaro
Copy link
Mannequin

rintaro mannequin commented Feb 6, 2019

master: #22416

@rintaro
Copy link
Mannequin

rintaro mannequin commented Feb 7, 2019

swift-5.0-branch: #22426

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

1 participant