Axel Meyer 2e72de2ea6 feat: parse_lua_surface accepts both explicit and sugar-form (S2 follow-up)
Per user-greenlight option (b): function M.foo(...) syntax sugar is now
recognized in addition to M.foo = function(...) explicit-assignment.

Eliminates 7 false-positive stale_docs warnings on every existing lib
README (e.g. lib-core.input). Sugar-form is dominant in Sporel-lib code
(113 occurrences across lib-core/) - sticking to explicit-only would
have required cascade-migrating all init.lua files. This approach is
pragmatic: lint tolerant of idiomatic Lua, no source-rewriting needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 16:07:06 +02:00

lib-core.api-discovery

Pure-Lua-Library for surface-discovery (extract M.* from Lua source) and README-parsing (extract documented API from markdown). Sandbox-safe — no FS, no side-effects. Used by Sporel's --lint CLI mode.

Version: 0.1.0

Description
Pure-Lua surface-discovery + README-parsing for Sporel API-Doc-Convention
Readme 61 KiB
Languages
Lua 100%