make ts.require call compatible with tree-sitter-teal rock#57
Merged
euclidianAce merged 1 commit intomainfrom Mar 10, 2025
Merged
make ts.require call compatible with tree-sitter-teal rock#57euclidianAce merged 1 commit intomainfrom
euclidianAce merged 1 commit intomainfrom
Conversation
If one builds the dependencies with LuaRocks doing ``` luarocks install ltreesitter luarocks install tree-sitter-teal ``` The resulting parser gets installed in `lib/lua/5.x/parser/teal.so`. Perhaps instead of this change, which includes a Unixy `/` path and probably breaks someone else's setup, ltreesitter should be changed instead, to allow automatically searching within a `parser` directory when doing its Lua package.cpath search.
Member
|
Huh, didn't know tree-sitter-teal got published to luarocks (looks like the neovim people have some automation to do that). Yeah, this probably belongs in ltreesitter. |
Member
|
I'll merge this anyway since it's what works with the luarocks installed verison |
Member
Author
|
By the way, your lint script that uses tree-sitter-teal is really cool and I think it would be great if it effectively became |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If one builds the dependencies with LuaRocks doing
The resulting parser gets installed in
lib/lua/5.x/parser/teal.so.Perhaps instead of this change, which includes a Unixy
/path and probably breaks someone else's setup, ltreesitter should be changed instead, to make it automatically search within aparserdirectory when doing its Lua package.cpath search.