Axel Meyer a169c6c74b fix(parse_readme_api): support namespace-less function names
The previous single-pattern approach used a greedy `[^.\x60]*` segment
that mis-captured H3 headers without a namespace prefix (e.g. test-lib
entrypoints documented as `### \`run_tests(ctx)\``).

Replace with a two-pass match: pattern 1 captures `### \`ns.func(...)\``
(namespaced) and pattern 2 captures `### \`func(...)\`` (no namespace).
A seen-set prevents the namespace-less pass from re-matching names
already collected by the namespaced pass.

Enables test-libs to declare a public surface in their READMEs and
satisfy --lint's missing-docs check.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 17:51:27 +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%