Commit graph

7 commits

Author SHA1 Message Date
Stefan VanBuren
b294a93403
Apply suggested fix
Since I can't via the GitHub UI.
2026-03-17 14:20:01 -04:00
Stefan VanBuren
86745d66a3
Re-add option handling; fix builtin type assertion
Now need to wait for coder3101/tree-sitter-proto#23 to land to really
sync this with upstream.
2026-03-16 10:51:28 -04:00
Stefan VanBuren
fb60ea759a
feat(proto): sync highlights with upstream
Syncs with coder3101/tree-sitter-proto#22, which adjusts captures to
better align with nvim-treesitter conventions:

- Package idents use @module, extend/oneof idents use @type
- Adds map_field, oneof_field @property captures
- option/syntax/edition use @keyword.directive
- extend/extensions/oneof/service moved to @keyword.type
- key_type/type use @type.builtin; rpc_name uses @function.method
- Import paths use @string.special.path
- proto2/proto3 syntax strings use @string.special.symbol
- Simplifies comment captures (removes doc comment distinction)

Honestly not sure how well other tree-sitter clients handle the
nvim-specific highlights, but I figure this is the primary client I'm
(at least personally) concerned about.
2026-03-16 10:51:28 -04:00
Stefan VanBuren
ebe76eb800
feat(proto): sync queries with upstream (#8554)
This adds support for [Protobuf Editions][1], and a couple other minor
fixes.

Ref: https://github.com/coder3101/tree-sitter-proto/tree/main/queries

[1]: https://protobuf.dev/editions/overview/
2026-03-06 16:12:43 +00:00
Riley Bruins
802195d8f1 feat(proto): folds for import statements 2025-08-31 08:06:48 +02:00
Riley Bruins
8fccdb3d49 feat(proto): more delimiter, property highlights 2025-08-31 08:06:48 +02:00
Christian Clason
692b051b09 feat!: drop modules, general refactor and cleanup 2025-05-12 18:43:40 +02:00