-
-
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
Complex options cannot be parsed #50
Comments
There is actually an alternate syntax without the ':' after 'foo' that is also valid in Protobuf:
Here's a diff on
This results in |
ATM aggregations are stored in AggregatedConstants. With this recursive example, this is no longer valid. Need to think about this a bit more |
in the PR, Issue #60 , the constants are flattened. |
This won't work for other arbitrary cases. For example, what if I have a repeated field in the message? so This might be fine to start, but just of note :-) |
This is still broken, will write a test. |
See the PR I just wrote, two things need to be handled:
|
closing this as #60 is merged |
I think the logic in
Option.parseAggregate
is not complicated enough - it assumes simple key/value for options. However, the following is a valid option:Then you can have:
This is completely valid, but due to the lack of recursion in
parseAggregate
, and the issue that it only stops on atSEMICOLON
(see #49), this will not be parsed.The text was updated successfully, but these errors were encountered: