summaryrefslogtreecommitdiff
path: root/protoParse.go
diff options
context:
space:
mode:
Diffstat (limited to 'protoParse.go')
-rw-r--r--protoParse.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/protoParse.go b/protoParse.go
index 79f36df..8994cee 100644
--- a/protoParse.go
+++ b/protoParse.go
@@ -45,6 +45,9 @@ func (pf *File) protoParse() error {
// parse the proto file for message struct names
for _, line := range strings.Split(string(data), "\n") {
if strings.HasPrefix(line, "message ") {
+ if curmsg != nil {
+ // message defined inside another message
+ }
curmsg = pf.parseForMessage(line)
}
// this logic isn't right. find end of message with more bravado