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

simpler tree-sitter rope provider #10486

Closed
wants to merge 1 commit into from

Conversation

glehmann
Copy link
Contributor

ropey’s Chunks iterator iterates over &str which implements
AsRef<[u8]> as required by tree-sitter’s TextProvider. In consequence
it is possible to use ropey’s Chunks directly as iterator and save a
few lines of code!

ropey’s `Chunks` iterator iterates over `&str` which implements
`AsRef<[u8]>` as required by tree-sitter’s `TextProvider`. In consequence
it is possible to use ropey’s `Chunks` directly as iterator and save a
few lines of code!
@pascalkuthe
Copy link
Member

changes look fine to me but I am working on removing this code entirely and using the tree sitter raw C API directly (#10286) so I would rather keep the code unchanged to avoid merge conflicts since this doesn't improve anything observable by the enduser

@glehmann
Copy link
Contributor Author

sure, that’s just a minor improvement I noticed while looking at how tree-sitter is used with ropey in helix :-)

@pascalkuthe
Copy link
Member

Alright then I am going to close this. Thank you for contributing!

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.

2 participants