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

feat: Add support for cmake files #353

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

alcroito
Copy link
Contributor

@alcroito alcroito commented Jan 3, 2025

This adds support for cmake script files.

It's using 0.4.1 instead of 0.5.0, because the latter depends on tree-sitter 0.22, which is not compatible with the 0.20 that is currently used.

@elijah-potter
Copy link
Collaborator

Looks good. Before I merge it, would you mind commenting on this issue to get cmake added to lspconfig?

Would you also add a couple tests with example cmake files to harper-comments/tests/language_support.rs to make sure it all works properly?

@alcroito
Copy link
Contributor Author

alcroito commented Jan 3, 2025

The linked issue is about haskell. Did you perhaps mean to open a separate issue for that project about adding cmake?
I can try, but i'll have to look up their contribution guidelines.

I'll try to add some tests next week.

@elijah-potter
Copy link
Collaborator

The linked issue is about haskell. Did you perhaps mean to open a separate issue for that project about adding cmake?

I was hoping @grantlemons would be able to combine the cmake and haskell changes. We'll likely get it figured out by the time the tests are in.

@grantlemons
Copy link
Collaborator

grantlemons commented Jan 3, 2025

I won't be back at my computer until this evening, but I'd be happy to make the change if the PR doesn't get merged first. If it does, there's always the Typst PR.

@grantlemons
Copy link
Collaborator

I won't be back at my computer until this evening, but I'd be happy to make the change if the PR doesn't get merged first. If it does, there's always the Typst PR.

The change has been made, I can also add vimscript if y'all figure out a way to do it without a git repository.

@elijah-potter
Copy link
Collaborator

Actually, I've changed my mind. The cmake comment syntax is simple enough that I don't need you to do test files. It looks good on my end, so I'm going to merge it.

@elijah-potter elijah-potter merged commit 7f31c41 into Automattic:master Jan 6, 2025
17 checks passed
@alcroito alcroito deleted the support_cmake branch January 6, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants