-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Parent: #344
Scope
- Add
tree-sitter-highlightto workspace deps - Add tree-sitter + grammar crates to
zeph-tui/Cargo.tomlbehind feature flags - Create
SyntaxThemestruct intheme.rswith styles for: keyword, string, comment, function, type, number, operator, variable, attribute, punctuation, constant - Add
pub syntax: SyntaxThemefield toTheme - Create
crates/zeph-tui/src/highlight.rswithSyntaxHighlighterstruct SyntaxHighlighter::new()registers available grammarsSyntaxHighlighter::highlight(lang, code, theme) -> Option<Vec<Span>>LazyLock<SyntaxHighlighter>at module level- Add
mod highlighttolib.rs
Acceptance criteria
-
SyntaxHighlightercompiles and initializes without panic - At least Rust grammar registered and produces highlighted spans
- Fallback returns
Nonefor unknown languages - Feature flags match zeph-index pattern (lang-rust, lang-python, lang-js, lang-config)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request