protocolbuffers / txtpbfmt

txtpbfmt parses, edits and formats text proto files in a way that preserves comments.
Apache License 2.0
99 stars 19 forks source link

Support bracket notation for repeated messages "[{}]" #27

Closed kssilveira closed 1 year ago

kssilveira commented 3 years ago

Support bracket notation for repeated messages "[{}]".

Example:

$ echo "value: [{}]" | fmt

parser.Format for path <stdin> with content "value: [{}]\n" returned err 

[{}] notation not supported

Full error: parser failed to make progress at index 8
position {Byte:8 Line:1 Column:9}
before: "value: ["
after: "{}]"
before+after: "value: [{}]"

1 error(s) encountered during execution
kasiditi commented 1 year ago

I believe this is already fixed by https://github.com/protocolbuffers/txtpbfmt/commit/6b0cb7827ab2684011788e72d1d05226b8588f89.

kssilveira commented 1 year ago

Indeed, thanks!