feat: add tree-sitter syntax highlighting module

- Cargo.toml: Add tree-sitter-highlight + grammar crates
  (rust, bash, json). TOML dropped due to API incompatibility.
- src/highlight.rs: Language enum, highlight_code() function,
  4 unit tests covering parsing and HTML generation.
- Uses static HTML_ATTRS array for zero-allocation rendering.
This commit is contained in:
Timothy DeHerrera
2026-01-24 20:38:02 -07:00
parent 5317da94c4
commit ba5e97dfb7
4 changed files with 339 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
mod content;
mod error;
mod highlight;
mod render;
mod templates;