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 Tree-sitter grammar #708

Closed
6 tasks done
yorickpeterse opened this issue Apr 20, 2024 · 4 comments
Closed
6 tasks done

Add Tree-sitter grammar #708

yorickpeterse opened this issue Apr 20, 2024 · 4 comments
Assignees
Labels
feature New things to add to Inko, such as a new standard library module
Milestone

Comments

@yorickpeterse
Copy link
Collaborator

yorickpeterse commented Apr 20, 2024

Description

This allows a wider range of editors to parse, highlight, etc Inko documents. I'm working on this in https://github.com/inko-lang/tree-sitter-inko.

Pull requests

NeoVim:

Helix:

Related work

@yorickpeterse yorickpeterse added the feature New things to add to Inko, such as a new standard library module label Apr 20, 2024
@yorickpeterse yorickpeterse added this to the 0.15.0 milestone Apr 20, 2024
@yorickpeterse yorickpeterse self-assigned this Apr 20, 2024
@yorickpeterse
Copy link
Collaborator Author

https://github.com/inko-lang/tree-sitter-inko implements everything necessary at a base level. nvim-treesitter/nvim-treesitter#6549 adds support for NeoVim, which requires a bunch of NeoVim-specific queries.

For Helix I'm not sure what the process is, but looking at the source code it seems similar to NeoVim in that you have to maintain editor-specific queries.

@alexaandru
Copy link

FWIW, I have also added your parser to https://github.com/alexaandru/go-sitter-forest so anyone using Go will also be able to make use of it. And with that occasion I discovered this gem of a language, looks really awesome!

@yorickpeterse
Copy link
Collaborator Author

@alexaandru Thanks! 😄

@alexaandru
Copy link

inko

You might like this - your parser in action, using the Go bindings above mentioned, in my (yet to be open sourced) text editor :-) Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New things to add to Inko, such as a new standard library module
Projects
None yet
Development

No branches or pull requests

2 participants