From 109d8c5b4fdddd9bf32756f2960749488816c340 Mon Sep 17 00:00:00 2001 From: Orkuncakilkaya Date: Mon, 31 Aug 2026 01:20:06 +0300 Subject: [PATCH] fix(docgen): palette.py emitted `ptr` instead of `pointer` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit palette.py generates selfhost/backend/stdlib/emit_color.ludic but its template wrote `function color_lookup(name: ptr)`, while the committed, correct source (and the rest of the compiler) uses `pointer` — so running the generator rewrote the file to a drifted version. Emit `pointer`; `python3 tools/docgen/palette.py` now leaves emit_color.ludic byte-identical. Co-Authored-By: Claude Opus 4.8 --- tools/docgen/palette.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docgen/palette.py b/tools/docgen/palette.py index e3ee1efd..5e4b73e3 100644 --- a/tools/docgen/palette.py +++ b/tools/docgen/palette.py @@ -269,7 +269,7 @@ def emit_ludic(path): lines.append("# Edit the palette there and regenerate; do not hand-edit this file.") lines.append("# ============================================================================") lines.append("") - lines.append("function color_lookup(name: ptr) -> int {") + lines.append("function color_lookup(name: pointer) -> int {") for (nm, hexv, grp) in PALETTE: lines.append(f' if (name == "{nm}") {{ return 0x{hexv:06X} }}') lines.append(" return -1")