From 427e9222363d07c32d6db6169e4049c28d58d141 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 1 Sep 2026 08:52:15 +0200 Subject: feat(proto)!: update parser and queries Breaking change: anonymous nodes ""proto3"" and ""proto2"" removed --- lua/nvim-treesitter/parsers.lua | 2 +- runtime/queries/proto/highlights.scm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index abeb16c0b..419f1ee7c 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1681,7 +1681,7 @@ return { }, proto = { install_info = { - revision = '5a256fe3b6be3bd2ea4d03e1213d847c7093c2e1', + revision = '176563b253d83c4d64ae900fe0d34dfbeb735772', url = 'https://github.com/coder3101/tree-sitter-proto', }, maintainers = { '@stefanvanburen' }, diff --git a/runtime/queries/proto/highlights.scm b/runtime/queries/proto/highlights.scm index 22df9002f..38691e5d5 100644 --- a/runtime/queries/proto/highlights.scm +++ b/runtime/queries/proto/highlights.scm @@ -72,10 +72,10 @@ (string) @string -[ - "\"proto3\"" - "\"proto2\"" -] @string.special +(reserved_identifier) @string + +(syntax + version: (string) @string.special) (escape_sequence) @string.escape -- cgit v1.3.1