diff --git a/docs/en/dev/changelog.md b/docs/en/dev/changelog.md index a9bd611..49fdedc 100644 --- a/docs/en/dev/changelog.md +++ b/docs/en/dev/changelog.md @@ -18,6 +18,9 @@ cut. ### Changed +- CLI: improved syntax error formatting to correctly display multiline source + text and caret positioning for indentation and end-of-line edge cases. + - CLI: split parser setup, command dispatch, local action handling, and remote action handling into focused internal modules. Command syntax and behavior are unchanged. ([#167](https://github.com/DevilsAutumn/quater/issues/167)) diff --git a/scripts/generate_reference.py b/scripts/generate_reference.py index 304b676..a334fc5 100644 --- a/scripts/generate_reference.py +++ b/scripts/generate_reference.py @@ -764,7 +764,7 @@ def render_reference( public_api: tuple[str, ...], pages_by_symbol: Mapping[str, ReferencePage], ) -> dict[Path, str]: - manual_outputs = read_manual_reference(public_api, pages_by_symbol) + manual_outputs = read_manual_reference(package, public_api, pages_by_symbol) if manual_outputs is not None: return manual_outputs @@ -782,6 +782,7 @@ def render_reference( def read_manual_reference( + package: Any, public_api: tuple[str, ...], pages_by_symbol: Mapping[str, ReferencePage], ) -> dict[Path, str] | None: @@ -803,6 +804,7 @@ def read_manual_reference( raise SystemExit( f"Manual reference page {page.path} does not document {name!r}" ) + return outputs