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

Support .swiftinterface files #10763

Closed
levitatingpineapple opened this issue May 15, 2024 · 3 comments
Closed

Support .swiftinterface files #10763

levitatingpineapple opened this issue May 15, 2024 · 3 comments
Labels
C-enhancement Category: Improvements

Comments

@levitatingpineapple
Copy link

Enhancement

Consider adding swiftinterface to recognised file-types for swift language.

Context

.swiftinterface files as the name suggests describe an interface of a module. The syntax matches that of the swift, without function bodies. It's fairly common to look through these files since they contain inline documentation.

Support

🟢 Tree-sitter

  • The highlights appear to be working (recovering) well even for +50k lines large files

🟡 LSP

Preview

demo.mp4
@levitatingpineapple levitatingpineapple added the C-enhancement Category: Improvements label May 15, 2024
@the-mikedavis
Copy link
Member

Feel free to open a PR. The diagnostics issue is a problem on the language server side unless there's some config we can add for the language server to not emit those.

@levitatingpineapple
Copy link
Author

Thanks @the-mikedavis! I've opened a PR with improvements for Swift, that also includes the additional file-type 😊

@levitatingpineapple
Copy link
Author

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants