yoheimuta / go-protoparser

Yet another Go package which parses a Protocol Buffer file (proto2+proto3)
MIT License
179 stars 20 forks source link

feat: parsing the rpc's trailing comment followed by the left curly brace #75

Closed yoheimuta closed 1 year ago

yoheimuta commented 1 year ago

ref. https://github.com/yoheimuta/protolint/issues/292#issuecomment-1305356269

The parser is supposed to extract // get the global address table from the below snippet.

service SearchService {
  rpc GetAll(GetRequest) returns(GetReply) { // get the global address table
    option(requestreply.Nats).Subject = "get.addrs";
  }
}