mirror of
https://github.com/openai/codex.git
synced 2026-11-02 19:43:24 +00:00
Replace tree-sitter-bash and tree-sitter-highlight with syntect for code highlighting. Syntect's HighlightLines API resolves overlapping spans internally, significantly simplifying the implementation. - Add syntect workspace dependency, remove tree-sitter-bash/highlight from tui - Rewrite highlight.rs with syntect singletons (SyntaxSet + base16-ocean.dark theme) - Normalize language aliases (js→javascript, py→python, rs→rust, etc.) - Multi-strategy syntax lookup: token, name, case-insensitive name, extension - Add guardrails: skip highlighting for inputs >512KB or >10K lines - Comprehensive tests for style conversion, language resolution, content preservation