diff options
| author | Jeff Carr <[email protected]> | 2025-10-06 23:38:56 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-06 23:38:56 -0500 |
| commit | 6753f190dfdbef8606aea0d1abedf47f089eb49b (patch) | |
| tree | 3102dc6a6dfba980e8df59e2c06d814e9e9426c3 /protoParse.go | |
| parent | d8ce54edfbc84d6880f06373b226976a1e702090 (diff) | |
s/save/sort duh
Diffstat (limited to 'protoParse.go')
| -rw-r--r-- | protoParse.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protoParse.go b/protoParse.go index c8ac75c..e09bbc3 100644 --- a/protoParse.go +++ b/protoParse.go @@ -87,6 +87,10 @@ func (pf *File) protoParse() error { curmsg.Unique = append(curmsg.Unique, newU) msgvar.HasUnique = true } + if strings.Contains(line, "`autogenpb:save") { + pf.DoSave = true + } + curmsg.Vars = append(curmsg.Vars, msgvar) } pf.makeSortTable() @@ -205,10 +209,6 @@ func (pf *File) parseForMessage(line string) *MsgName { 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 |
