Comments (2)
@hfjn That's nearly right!
This parser conforms to the spec like enumValueOption = optionName "=" constant.
So that, the part around "{field_number: 101}" should be fullIdent | ( [ "-" | "+" ] intLit ) | ( [ "-" | "+" ] floatLit ) | strLit | boolLit.
from go-protoparser.
To sum up, you can fix a line like below.
- REQUEST = 1 [(event_additional_data) = {field_number: 101}];
+ REQUEST = 1 [(event_additional_data) = "{field_number: 101}"];
[memo] This parser extends a rule regarding a field option beyond the spec to parse a grpc-gateway_a_bit_of_everything.proto.
from go-protoparser.
Related Issues (20)
- Support `option (google.api.http) = {...}` HOT 1
- Support extend definition HOT 1
- Accept block followed by semicolon HOT 1
- Multiline string literals error HOT 6
- Support oneof options HOT 1
- Installation instructions in readme is invalid HOT 4
- error parsring if file ends with comment _and_ no newline HOT 3
- Support swagger annotations HOT 1
- Godoc Links don't work HOT 1
- Adapt the parser rule to the official spec updated so far HOT 1
- Support `option (.foo.bar) = {...}` HOT 5
- Support option aggregate syntax HOT 9
- Is possible that FieldNumber is not number? HOT 1
- Is possible that json revert to protobuf HOT 1
- MessageBody does not have parser.Extensions field, so UnorderedInterpret returns error when parse a proto message with "extensions" HOT 4
- Comments are assigned to the wrong fields HOT 3
- Use Bazel for builds? HOT 1
- Parser panics when double semi-colon in service option HOT 1
- Add Position data to each parsed element HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-protoparser.