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
This commit is contained in:
Stefan VanBuren 2025-09-08 10:33:09 -04:00
parent fee71c102c
commit 9b1d8a7e3c
No known key found for this signature in database

View file

@ -15,6 +15,7 @@
(identifier) @property)
[
"edition"
"extend"
"extensions"
"oneof"
@ -63,6 +64,8 @@
[
"\"proto3\""
"\"proto2\""
"\"2023\""
"\"2024\""
] @string.special
(int_lit) @number