summaryrefslogtreecommitdiff
path: root/protoParse.go
diff options
context:
space:
mode:
Diffstat (limited to 'protoParse.go')
-rw-r--r--protoParse.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/protoParse.go b/protoParse.go
index 33951d2..c8ac75c 100644
--- a/protoParse.go
+++ b/protoParse.go
@@ -204,6 +204,11 @@ func (pf *File) parseForMessage(line string) *MsgName {
msg.DoHTTP = true
msg.DoMarshal = true // http requires Marshal
}
+
+ if strings.Contains(line, "`autogenpb:autosave") {
+ pf.DoSave = true
+ }
+
if strings.Contains(line, "`autogenpb:gui") {
log.Info("got autogenpb:gui")
pf.DoGui = true