tree-sitter-proto

February 18, 2026 · View on GitHub

CI crates

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:

QueryDescription
highlights.scmSyntax highlighting
folds.scmCode folding
indents.scmAutomatic indentation
injections.scmLanguage 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: