tree-sitter-proto
February 18, 2026 · View on GitHub
Protocol buffer grammar for tree-sitter.
✨ Features
- ✅ Proto2 support
- ✅ Proto3 support
- ✅ Support for editions
- ✅ Neovim queries (highlights, folds, indents, injections)
📦 Queries
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) |
Usage in Neovim
This parser can be used with nvim-treesitter.
Special Thanks
Special thanks to the following people for their amazing work on this grammar: