From 9b1d8a7e3cdd4b0ace8a20d5ea88f71d7940ddf4 Mon Sep 17 00:00:00 2001 From: Stefan VanBuren Date: Mon, 8 Sep 2025 10:33:09 -0400 Subject: [PATCH] Teach protobuf parser about editions Handled similarly to `syntax = "proto{2,3}"` lines. Ref: https://protobuf.dev/editions/overview/ Ref: https://buf.build/blog/protobuf-editions-are-here --- runtime/queries/proto/highlights.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/queries/proto/highlights.scm b/runtime/queries/proto/highlights.scm index 894686dd4..eab38e657 100644 --- a/runtime/queries/proto/highlights.scm +++ b/runtime/queries/proto/highlights.scm @@ -15,6 +15,7 @@ (identifier) @property) [ + "edition" "extend" "extensions" "oneof" @@ -63,6 +64,8 @@ [ "\"proto3\"" "\"proto2\"" + "\"2023\"" + "\"2024\"" ] @string.special (int_lit) @number