-
Notifications
You must be signed in to change notification settings - Fork 590
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
[Swift] Initial support #3918
Comments
@FichteFoll maybe pin this, too? |
So just to mention, there are few quite serious issues with the syntax that are spread across the whole its code, like this one for instance. This exact one is occurred because of func definition takes anything that matches So I'd like to get acknowledged with DoD of this task from your perspective. Because if they're quite strict this will leads not just to adding a tests with some minor bug fixes meanwhile, but to some general refactoring. |
As I mentioned on Discord previously, in my opinion we can merge into a Footnotes
|
Just an update of the swift syntax journey here.
|
@FichteFoll speaking about syntax testing. One difficulty that I struggling with is the absence of knowledge "What's the right scope from ST should be really set on a given clause", i.e. the source of truth absence. Recently we've got fixed LSP-Sourcekit semantic highlighting feature, so now LSP server sends its tokens, i.e. here's the source of truth coming. So I look forward to rely on semantic highlight as a source of truth. Is a good practice here? Maybe you see some flaws along the path right away? Here's the example of tokens provided by lsp server. request.setValue(apiKey, forHTTPHeaderField: "x-api-key")
// <- variable
// <- method, defaultLibrary |
I can send you a small PR to get you started with syntax testing in general if that helps. You should only test what is defined in the syntax within the same repository. If you got stuff missing there but you want to take parts from |
Yeah, I'd really appreciate that |
What happened?
There were several attempts to add a Swift syntax to the default packages before, but they failed because the quality of the syntax definitions were not up to par and there was not enough movement behind them to get them to a passable level (#11). Since the previous issue tracking this (#253) was closed, I'm opening a new one to gather community support, ideas, and to collect references.
Previous (publicly accessible) work:
Going forward
The most promising Swift language definition was recently (2024-01) added to Package Control under the name of "Swift Next" and is maintained by @yaroslavyaroslav at https://github.com/Swift-Next/Swift-Next and was originally created by @aerobounce. @yaroslavyaroslav also voiced his support for eventually adding the package to the default packages and offered to help with that.
The text was updated successfully, but these errors were encountered: