Tags and Properties for Check-in 5dbfd58fba
- branch=highlight inherited from [f84ad487f5]
- ci-pass=8b10be9d2d44fd0a51684bbee7e32d9b added by [fd04cf11c5] on 2026-11-20 02:48:50
- closed added by [c117f3d811] on 2026-11-20 02:48:53
- sym-highlight inherited from [f84ad487f5]
Context
|
2026-11-20
| ||
| 02:48 | • Edit [5dbfd58fba]: Mark "Closed". artifact: c117f3d811 user: dmestas | |
| 02:48 | • Edit [5dbfd58fba]: Add "ci-pass" with value "8b10be9d2d44fd0a51684bbee7e32d9b". artifact: fd04cf11c5 user: quarry | |
| 02:40 | Merge trunk (caching, Gemini) into the syntax highlighter closed check-in: 5dbfd58fba user: dmestas tags: highlight | |
|
2026-11-19
| ||
| 23:12 |
TUI: a syntax highlighter for code blocks
src/tui/highlight.c colours fenced code with ANSI SGR using Pi's token classes and its dark and light theme colours: C and C++, shell, Python, JavaScript and TypeScript, JSON, Go, Rust, diff, Markdown, YAML and SQL, with a generic fallback. Linear, safe on arbitrary bytes (a random input test under ASan), every styled span closed before each newline so lines wrap on their own. Not wired into the renderer yet. check-in: f84ad487f5 user: dmestas tags: highlight | |