Files
Kenneth ShawandClaude Sonnet 5.5 dde24393d8 highlight: draw the input in color with transit and its styles
The new highlight package parses the input with the usql grammar of transit,
parses each statement with the SQL grammar of the dialect, and runs the
highlight queries of both. The colors come from transit's styles module, and
rline draws them at the depth of the terminal. The settings syntax_hl,
syntax_hl_format, syntax_hl_style and syntax_hl_override_bg control it, and a
style or a format that does not exist is an error. This is W58.

The grammars add about 23 MB to the default build, and 15 MB of that is the
PostgreSQL grammar. W58 records the choice to use the generic grammar for it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 05:39:08 +07:00
..