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

add circom tree-sitter, syntax-highlighting, and lsp support #11676

Merged
merged 7 commits into from
Sep 21, 2024

Conversation

thor314
Copy link
Contributor

@thor314 thor314 commented Sep 12, 2024

This PR adds LSP and tree-sitter support for the zero-knowledge circuit language Circom.

Syntax highlighting was added three days ago in the tree-sitter-circom repo.

I have tested the changes on my machine with my local helix configuration, but not with the forked helix build. Let me know if I need to test with the forked helix binary as well.

cheers

@the-mikedavis
Copy link
Member

To fix the docs CI you can run cargo xtask docgen and commit the changes

@the-mikedavis the-mikedavis added the A-language-support Area: Support for programming/text languages label Sep 14, 2024
runtime/queries/circom/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/circom/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/circom/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/circom/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/circom/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/circom/highlights.scm Outdated Show resolved Hide resolved
runtime/queries/circom/highlights.scm Outdated Show resolved Hide resolved
@thor314
Copy link
Contributor Author

thor314 commented Sep 18, 2024

@the-mikedavis I see. Thanks for the examples, I made a few other edits, should be good to go if CI clears.

@pascalkuthe pascalkuthe merged commit c850b90 into helix-editor:master Sep 21, 2024
6 checks passed
plul pushed a commit to plul/helix that referenced this pull request Oct 13, 2024
…ditor#11676)

* add circom tree-sitter and lsp support

* add circom syntax highlighting queries

* cargo xtask docgen

* updated highlights to reflect helix themes typing

* bugfix: ~= operator causing issues

* minor adjustment: add = and ; operator and delimiter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants