summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protoReformat.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/protoReformat.go b/protoReformat.go
index 87eaf1a..093a666 100644
--- a/protoReformat.go
+++ b/protoReformat.go
@@ -194,7 +194,10 @@ func getInceptionMsg(fmtmsg *FormatMsg) {
newmsg.MaxVarname = fmtmsg.MaxVarname
newmsg.MaxVartype = fmtmsg.MaxVartype
newmsg.Header = line
+ getInceptionEnum(newmsg)
fmtmsg.Enums = append(fmtmsg.Enums, newmsg)
+ // log.Info("got here:", line)
+ // os.Exit(-1)
continue
}
if strings.HasPrefix(line, "message ") {
@@ -203,6 +206,7 @@ func getInceptionMsg(fmtmsg *FormatMsg) {
newmsg.MaxVarname = fmtmsg.MaxVarname
newmsg.MaxVartype = fmtmsg.MaxVartype
newmsg.Header = line
+ getInceptionMsg(newmsg)
fmtmsg.InceptionMsgs = append(fmtmsg.InceptionMsgs, newmsg)
continue
}