-
Notifications
You must be signed in to change notification settings - Fork 55
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
fallback grammar labels operator lexeme precedence groups as invalid syntax #366
Comments
Again this is most likely Sourcekit-LSP. The vscode-swift extension does nothing with the semantic highlighting |
can you please transfer this issue to https://github.com/apple/sourcekit-lsp/issues ? |
It appears transfer issue only works within an organisation. So I can't transfer to the apple organisation. |
there are three bugs covered by this issue, you are correct in that one of them was actually a sourcekit-lsp issue, and i have refiled it there. the other two are vscode bugs, as they originate from faulty rules in their repository: https://github.com/microsoft/vscode/blob/main/extensions/swift/syntaxes/swift.tmLanguage.json closing this issue |
@tayloraswift can you help here |
i am still seeing i’m on version v1.7.0 of the swift extension, but i imagine this is coming from the TextMate grammar that ships with VSCode (1.83.1), and not the swift extension. |
Yep, sounds like it must be a VS Code specific issue then. If anyone knows a quick way to use an updated tmlanguage in vscode for testing purposes, let me know. I will try it out and see if I can figure out where the discrepancy comes from. |
I believe the root cause of the issue is microsoft/vscode-textmate#140. There seems to be a simple enough workaround so I believe it I can get this fixed easily. |
Describe the bug
operator lexeme declarations with explicit precedence groups are (incorrectly) flagged as invalid syntax:
there are three bugs here. two are vscode-swift bugs, and the other one is a sourcekit-lsp bug:
?=
:
ComparisonPrecedence
identifier
identifier
identifier
operator
invalid
invalid
operator
Environment
The text was updated successfully, but these errors were encountered: