Tags and Properties for Check-in f7b1bab2f5
- branch=highlight inherited from [f84ad487f5]
- ci-pass=d19fb3cc99848707346cab0ec555d592 added by [7b54c055bb] on 2026-11-20 02:35:20
- sym-highlight inherited from [f84ad487f5]
Context
|
2026-11-20
| ||
| 02:35 | • Edit [f7b1bab2f5]: Add "ci-pass" with value "d19fb3cc99848707346cab0ec555d592". artifact: 7b54c055bb user: quarry | |
| 02:28 | Merge trunk into the syntax highlighter check-in: f7b1bab2f5 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 | |