mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-22 13:20:09 -04:00
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:
parent
fee71c102c
commit
9b1d8a7e3c
1 changed files with 3 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
(identifier) @property)
|
||||
|
||||
[
|
||||
"edition"
|
||||
"extend"
|
||||
"extensions"
|
||||
"oneof"
|
||||
|
|
@ -63,6 +64,8 @@
|
|||
[
|
||||
"\"proto3\""
|
||||
"\"proto2\""
|
||||
"\"2023\""
|
||||
"\"2024\""
|
||||
] @string.special
|
||||
|
||||
(int_lit) @number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue