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

allow looking up language by filename #22

Closed
wants to merge 2 commits into from

Conversation

tmm1
Copy link

@tmm1 tmm1 commented Jul 27, 2023

@grantjenks
Copy link
Owner

Should this go in py-tree-sitter instead? Seems like a simple script to generate a language file which would be generally useful. I understand it’s related here to the binaries included in the package but I’d rather not maintain it myself.

@tmm1
Copy link
Author

tmm1 commented Jul 28, 2023

Yea that's a fair point. Perhaps py-tree-sitter should generate a languages_index.py alongside the languages.so, and then all you have to do is copy it over.

I'll work on an upstream PR, but if it gets stuck in limbo perhaps we can ship this and refactor later.

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.

Language detection
2 participants