aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/proto
diff options
context:
space:
mode:
authorStefan VanBuren <svanburen@buf.build>2026-03-06 11:12:43 -0500
committerGitHub <noreply@github.com>2026-03-06 16:12:43 +0000
commitebe76eb800d4e8df754fc96f8a7b84f578224a97 (patch)
tree617c8de2b5f2fe4b1b728e1f9bdc31c1b02653b4 /runtime/queries/proto
parentfeat(robot)!: update parser and queries (diff)
downloadnvim-treesitter-ebe76eb800d4e8df754fc96f8a7b84f578224a97.tar
nvim-treesitter-ebe76eb800d4e8df754fc96f8a7b84f578224a97.tar.gz
nvim-treesitter-ebe76eb800d4e8df754fc96f8a7b84f578224a97.tar.bz2
nvim-treesitter-ebe76eb800d4e8df754fc96f8a7b84f578224a97.tar.lz
nvim-treesitter-ebe76eb800d4e8df754fc96f8a7b84f578224a97.tar.xz
nvim-treesitter-ebe76eb800d4e8df754fc96f8a7b84f578224a97.tar.zst
nvim-treesitter-ebe76eb800d4e8df754fc96f8a7b84f578224a97.zip
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/
Diffstat (limited to 'runtime/queries/proto')
-rw-r--r--runtime/queries/proto/folds.scm2
-rw-r--r--runtime/queries/proto/highlights.scm20
2 files changed, 21 insertions, 1 deletions
diff --git a/runtime/queries/proto/folds.scm b/runtime/queries/proto/folds.scm
index 76f688b7d..87fe6d304 100644
--- a/runtime/queries/proto/folds.scm
+++ b/runtime/queries/proto/folds.scm
@@ -2,6 +2,8 @@
(enum)
(message)
(service)
+ (oneof)
+ (rpc)
] @fold
(import)+ @fold
diff --git a/runtime/queries/proto/highlights.scm b/runtime/queries/proto/highlights.scm
index 894686dd4..22df9002f 100644
--- a/runtime/queries/proto/highlights.scm
+++ b/runtime/queries/proto/highlights.scm