devkanro / intellij-protobuf-plugin

IntelliJ-based IDEs Protobuf Language Plugin that provides Protobuf language support.
Apache License 2.0
83 stars 11 forks source link

Plugin not supports field reservation #227

Closed ShuffleBoy closed 3 months ago

ShuffleBoy commented 8 months ago

1) Create a proto file and paste

syntax = "proto3";

message Test{
    reserved 2;
    reserved "to_be_reserved";

    int32 field = 1;
    int32 to_be_reserved = 3;
}

2) The plugin doesn't recognize field reservations (as mentioned in language guide https://protobuf.dev/programming-guides/proto3/#fieldreserved) изображение

devkanro commented 7 months ago

Currently we support those symbol:

syntax = "proto3";

message Test{
    reserved 2;
    reserved to_be_reserved;

    int32 field = 1;
    int32 to_be_reserved = 3;
}

I will update the AST to support this.

devkanro commented 3 months ago

Will be resolved in 2.0.0, currently we are running 2.0.0-EAP, you can join us to test it.