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

Tree Sitter parser and nvim-treesitter support #964

Open
belltoy opened this issue Jul 31, 2024 · 1 comment
Open

Tree Sitter parser and nvim-treesitter support #964

belltoy opened this issue Jul 31, 2024 · 1 comment

Comments

@belltoy
Copy link

belltoy commented Jul 31, 2024

I'm using and following vector for years. There is a missing part since the VRL was introduced till now, the syntax support in editors. I found some people were trying to build tree-sitter parse few years ago but not finished at the end.

Earlier, I've written a simple vim plugin via the original vim syntax match to highlight VRL codes. But that's not good enough for the modern develop environment.

Recently, I wrote a VRL parser and integrated it into neovim.

Finally, we have a better syntax highlighting and something more provided by the power of tree-sitter, such as code folding, auto indentation, variable references, and code injections in YAML/TOML files. Other editor than neovim could be easily adding VRL support via tree-sitter support.

Hope that helps.

@jszwedko
Copy link
Member

jszwedko commented Aug 1, 2024

Very cool, thanks for sharing @belltoy

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

2 participants