generate: Parse doc comments

This commit is contained in:
2025-10-13 16:16:57 -04:00
parent e991b5af67
commit 190a89fbb3
2 changed files with 40 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ func TestParse(test *testing.T) {
correct := defaultProtocol()
correct.Messages[0x0000] = Message {
Name: "Connect",
Doc: "Connect is sent from the client to the server as the first message of an\n authenticated transaction.",
Doc: "Connect is sent from the client to the server as the first message of an\nauthenticated transaction.",
Type: TypeTableDefined {
Fields: map[uint16] Field {
0x0000: Field { Name: "Name", Type: TypeString { } },