Protocol buffer grammar for tree-sitter.
- ✅ Proto2 support
- ✅ Proto3 support
- ✅ Support for editions
- ✅ Neovim queries (highlights, folds, indents, injections)
The following queries are provided for editor integration:
| Query | Description |
|---|---|
highlights.scm |
Syntax highlighting |
folds.scm |
Code folding |
indents.scm |
Automatic indentation |
injections.scm |
Language injections (comments) |
This parser can be used with nvim-treesitter.
Special thanks to the following people for their amazing work on this grammar: