~bigbes/tarantool-protobuf: 428ee1f6

codegen: propagate proto comments into generated _pb.lua

Leading `//` comments on messages, enums, enum values, fields, services,
and RPC methods now surface in the generated Lua:

- Message / enum descriptions become `---` blocks above `---@class` /
  `---@alias`, so LuaLS shows them on hover.
- Per-field comments collapse onto a trailing `@ description` on the
  matching `---@field` line.
- Enum values, service banners, and per-method entries get plain `--`
  lines inside the table literals so readers without an LSP still see
  the proto-side context.

Covers both `mode=full` and `mode=runtime` (emission is mode-independent
but the new luatest group runs against both).

Eugene Blikh <bigbes@gmail.com> — 2026-05-16 19:16:34 UTC

Commit 428ee1f6a55bef1106d9d3a12f8991c24a1cb7d5view raw patch

Parent(s): 4d7fda1f

10 changed file(s)

FileStatus+
cmd/protoc-gen-tarantool/internal/gen/emmylua.go M +63 -2
cmd/protoc-gen-tarantool/internal/gen/gen.go M +1
cmd/protoc-gen-tarantool/internal/gen/service.go M +5
examples/expected/full/conformance/conformance_pb.lua M +39 -17
examples/expected/full/hello/hello_pb.lua M +15 -2
examples/expected/full/protobuf_test_messages/proto3/test_messages_proto3_pb.lua M +14 -7
examples/expected/runtime/conformance/conformance_pb.lua M +39 -17
examples/expected/runtime/hello/hello_pb.lua M +15 -2
examples/expected/runtime/protobuf_test_messages/proto3/test_messages_proto3_pb.lua M +14 -7
test/codegen_doc_comments_test.lua A +230