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

lua binding request #365

Closed
yafacex opened this issue Jun 15, 2019 · 3 comments
Closed

lua binding request #365

yafacex opened this issue Jun 15, 2019 · 3 comments

Comments

@yafacex
Copy link

yafacex commented Jun 15, 2019

I am a game developer.use lua a lot.i used lpeg to create rule descript grammers to write game logic before.but to support ide highlight is not convenient.i tried to switch to tree sitter for both ast generation and highlight edit.

@maxbrunsfeld
Copy link
Contributor

The Neovim team has made some progress on this: see neovim/neovim#10124.

@bfredl Do you think it makes sense to extract your Lua Tree-sitter bindings into a standalone library at some point?

@bfredl
Copy link
Contributor

bfredl commented Jun 15, 2019

Sure. I have tried to keep references to nvim quite minimal in the lua API binding https://github.com/neovim/neovim/blob/ce4d57d1b600907039d7640950714d3cf95d583e/src/nvim/lua/tree_sitter.c
The external connections is mostly (1) use internal vim functions to read from a vim buffer and (2) use libuv wrapper for dlopen() parsers as dynamic libraries.

@ahlinc
Copy link
Contributor

ahlinc commented Jul 16, 2023

@ahlinc ahlinc closed this as completed Jul 16, 2023
@tree-sitter tree-sitter deleted a comment from issue-label-bot bot Feb 8, 2024
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

No branches or pull requests

4 participants