Syntax Highlighting in LLDB with Tree-sitter

LLDB comes with built-in syntax highlighting for C-based languages. It does so using the embedded clang compiler. Other languages following this model of embedding the compiler, such as Swift, can take a similar approach. Motivation There are two important use cases where relying on the compiler for syntax highlighting doesn’t work: Some languages, like Rust and Zig, don’t have their own type system and instead reuse the Clang type system. LLDB has the ability to create synthetic stack frames representing any language, including interpreter languages like Python....

February 16, 2026