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-6614] Syntax highlighting wrong for class protocol #49163

Open
louisdh opened this issue Dec 14, 2017 · 3 comments
Open

[SR-6614] Syntax highlighting wrong for class protocol #49163

louisdh opened this issue Dec 14, 2017 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@louisdh
Copy link
Contributor

louisdh commented Dec 14, 2017

Previous ID SR-6614
Radar rdar://problem/36219072
Original Reporter @louisdh
Type Bug

Attachment: Download

Environment

Xcode Version 9.2 (9C40b)
Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Target: x86_64-apple-macosx10.9

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee None
Priority Medium

md5: e793e4b95ee3224cbf0cfaa94fd3d148

Issue Description:

The following snippet results in bogus syntax highlighting:
```
protocol MyProtocol: class {
}
```
As can be seen in the attached screenshot, the opening curly brace (after "class") is treated as the same token.

@belkadan
Copy link
Contributor

cc @nkcsgexi (not sure who owns syntax highlighting these days)

@louisdh
Copy link
Contributor Author

louisdh commented Apr 4, 2018

Still an issue in Swift 4.1 (swiftlang-902.0.48 clang-902.0.37.1, Xcode 9.3).

@belkadan
Copy link
Contributor

belkadan commented Apr 4, 2018

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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

2 participants