Overview
| Comment: | Merge trunk into the syntax highlighter |
|---|---|
| Timelines: | family | ancestors | descendants | both | highlight |
| Files: | files | file ages | folders |
| SHA3-256: |
f7b1bab2f53bca4cca33df790e4b5f30 |
| User & Date: | dmestas on 2026-11-20 02:28:00.151 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-11-20
| ||
| 02:40 | Merge trunk (caching, Gemini) into the syntax highlighter closed check-in: 5dbfd58fba user: dmestas tags: highlight | |
| 02:28 | Merge trunk into the syntax highlighter check-in: f7b1bab2f5 user: dmestas tags: highlight | |
| 02:11 | CI green on fc3329ac14e5 check-in: c4f5d9c2cd user: dmestas tags: trunk | |
|
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 | |
Changes
Modified Makefile
from [8c41c1efcc]
to [b683c237d5].
[diff]
Modified README.md
from [da6dd9dd42]
to [4c1f1439af].
[diff]
Added bench/baselines/Linux-x86_64.tsv version [8440285ba4].
Modified bench/pic_bench.c
from [7e4001f83a]
to [7c25ca8df2].
[diff]
Added src/commands.c version [2159bfe959].
Added src/commands.h version [a006ada0a1].
Modified src/compact.c
from [f8a790ae13]
to [a741fac152].
[diff]
Modified src/events.c
from [440041c4d5]
to [d8cbeb074a].
[diff]
Modified src/events.h
from [853b2447be]
to [4a9c6745e5].
[diff]
Modified src/export_html.c
from [b5e52086a1]
to [49e49954bb].
[diff]
Modified src/export_pi.c
from [3d3581cf3e]
to [7a625046d3].
[diff]
Added src/image.c version [5e73b852c5].
Added src/image.h version [32f0ad6f5d].
Modified src/import_pi.c
from [40885bdcde]
to [c61506b791].
[diff]
Modified src/loop.c
from [4ab5fa5d1b]
to [a212e675d7].
[diff]
Modified src/main.c
from [97f966db47]
to [1d5bd5df4d].
[diff]
Modified src/model_catalog.inc
from [730c0c7e11]
to [c19474ada6].
[diff]
Modified src/models.c
from [fc70d096b4]
to [74f42209ca].
[diff]
Modified src/models.h
from [dc3842828d]
to [e803620528].
[diff]
Modified src/net.c
from [34711dda3f]
to [bb32f8da84].
[diff]
Modified src/net.h
from [181b7d4d81]
to [d92747386b].
[diff]
Modified src/pic.h
from [f844a1a7f6]
to [74bee5b323].
[diff]
Modified src/provider_anthropic.c
from [c3bd89efd1]
to [5096379066].
[diff]
Modified src/provider_chat.c
from [8459be55a2]
to [c1707d7577].
[diff]
Modified src/provider_http.c
from [ff24f3be8e]
to [566ed21807].
[diff]
Modified src/provider_responses.c
from [a9e2217cec]
to [f5dc81ca44].
[diff]
Added src/prune.c version [f8ddde14e9].
Modified src/sqlar.c
from [b212dbdafd]
to [ffbadabbaf].
[diff]
Modified src/sqlar.h
from [725cc41604]
to [978a983745].
[diff]
Modified src/store.c
from [c2a812605f]
to [c858fa4b81].
[diff]
Modified src/tools.c
from [74582128d7]
to [0ff8293695].
[diff]
Modified src/transform.c
from [95b48f2106]
to [1405f7bdcd].
[diff]
Modified src/tree.c
from [b722f1b68d]
to [1cf0849d95].
[diff]
Modified src/tui/app.c
from [e7041e7ab8]
to [ee62c1e384].
[diff]
Modified src/tui/editor.c
from [7013b3dab4]
to [b7fff2b167].
[diff]
Modified src/tui/editor.h
from [8d821e6d90]
to [da6c1e4b83].
[diff]
Added src/tui/markdown.c version [baf9dfcdf9].
Added src/tui/markdown.h version [23a35f5af4].
Modified src/tui/term.c
from [8bd1b55fb3]
to [8799abc654].
[diff]
Modified src/tui/term.h
from [2c28b523f2]
to [54fc2a92fd].
[diff]
Modified src/tui/view.c
from [01a172b92d]
to [692269528b].
[diff]
Modified src/tui/view.h
from [5a240161fe]
to [01d02f2df6].
[diff]
Modified src/tui/width.c
from [f7f3ef3f12]
to [bacf2f05e7].
[diff]
Modified test/pic/catalog.sh
from [6cb3839fdd]
to [5d53bacfa1].
[diff]
Added test/pic/cost.sh version [572735102b].
Modified test/pic/crash.sh
from [2bf1b9e030]
to [47ff727acc].
[diff]
Modified test/pic/events.sh
from [302254246f]
to [6745c3eb94].
[diff]
Modified test/pic/fake_server.c
from [7ea033e6a1]
to [fcff551c88].
[diff]
Added test/pic/image-streams/chat_read_png.sse version [be99a92596].
Added test/pic/image-streams/read_png.sse version [e3f1d6fc47].
Added test/pic/image-streams/responses_read_png.sse version [d90f8e3185].
Added test/pic/images.sh version [92cf8f95c1].
Modified test/pic/migrate.sh
from [62e94999f0]
to [d894f9d7fd].
[diff]
Added test/pic/steer.sh version [e8cb6e0333].
Added test/pic/streams/bash_hold.sse version [b3ceaeecae].
Added test/pic/streams/bash_hold.want version [1687f6654b].
Added test/pic/streams/bash_out.sse version [58742865d4].
Added test/pic/streams/bash_out.want version [1de52ecbb3].
Modified test/pic/test_files.c
from [b6a9410020]
to [4555652f39].
[diff]
Modified test/pic/test_models.c
from [bb65c074ed]
to [7236e9face].
[diff]
Modified test/pic/test_skills.c
from [c8376043a2]
to [e3ea61c273].
[diff]
Added test/tui/streams/markdown.sse version [4976980114].
Modified test/tui/test_tui.c
from [72c5c0acb4]
to [d34ba042e2].
[diff]
Modified test/tui/tui.sh
from [0bc9732207]
to [775b76dd0f].
[diff]
Modified tools/model-catalog.sh
from [d624f3f199]
to [903e06a0d6].
[diff]
Modified tools/remote/payload.sh
from [ed0d026059]
to [ac961a2d54].
[diff]