We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another edge case:
// b.proto syntax = "proto2"; message Foo { optional float one = 1 [default = 100.]; optional double two = 2 [default = 200.]; }
protoc b.proto -o /dev/null
goprotoc b.proto -o /dev/null
b.proto:6:40: syntax error: unexpected '.', expecting ',' or ']'
one
I verified that 100 and 100.0 work.
100
100.0
The text was updated successfully, but these errors were encountered:
Interesting. I did not realize this was considered valid in protoc. I don't think this one is hard either though.
Sorry, something went wrong.
Fixed in #262
No branches or pull requests
Another edge case:
protoc b.proto -o /dev/null
completes successfullygoprotoc b.proto -o /dev/null
returnsb.proto:6:40: syntax error: unexpected '.', expecting ',' or ']'
(if you comment out the fieldone
, it will also return an error on line 7, but you won't get both errors until protoparse: add error productions to the grammar and update validation to return multiple errors #225 is done)I verified that
100
and100.0
work.The text was updated successfully, but these errors were encountered: