tree-sitter-bend
Bend grammar for tree-sitter.
Usage
Neovim
Installation
First of all, you need to install nvim-treesitter with your favorite dependency manager, such as lazy.nvim.
After that, you should add this code snippet to your Neovim configuration right after calling require("nvim-treesitter.configs").setup(). The configuration file can be found or created at ~/.config/nvim/init.lua.
local parser_config = require.
parser_config. =
vim..
vim...
Using lazy.nvim, your configuration could look like this:
plugins =
require.
Finally, install the language grammar into the tree-sitter plugin by running :TSInstall bend on Neovim.
Syntax highlighting
For syntax highlighting to work, you have to create a queries/bend directory in your Neovim configuration root and copy the file highlights.scm into it.
You might have to update the Tree-sitter plugin afterwards by running :TSUpdate on Neovim.
VSCode
You can use syntax highlighting on VSCode through our VSCode extension, check out its repository here.
Contributing
The grammar descriptions can be found in the directory ./grammar, called by the main file ./grammar.js. Most other files are automatically generated by the tree-sitter CLI using tree-sitter generate.