summaryrefslogtreecommitdiff
path: root/protoParse.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-26 03:03:22 -0500
committerJeff Carr <[email protected]>2025-03-26 20:44:06 -0500
commit2775e36aa4e981a4a052b6f15148b61b0f13a2f7 (patch)
tree1e3d272a89b35129fba6c4eaef03d6f1ae0de01b /protoParse.go
parent96fe1d8f1413438c936befd0261adbd8181bc181 (diff)
try to autoformat the protobufs for the signal devs
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