-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
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
Parsing comments inside an array in an Option #138
Comments
thank you for reporting this issue. I am aware that comment parsing is not implemented at all possible locations. I will have a look if this case can be supported |
adding test to reproduce
|
check #139 |
Works for me. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have some proto that looks like this
Which causes the parser to throw this error:
Error: <input>:12:9: found "{" but expected [, or ]]
I got a hacky fix to work and pass tests by adding the following lines in
option.go
after the check for a closing bracket]
https://github.com/emicklei/proto/blob/master/option.go#L201-L207
but then realised that would only work for a single comment.
I'm unsure what an appropriate fix is here so figured I'd raise an issue. Thanks.
Sidenote - It seems to work properly if the comment appears after the
{
The text was updated successfully, but these errors were encountered: