Implement Tree-sitter ZLE syntax highlighter #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Implement the standalone Tree-sitter ZLE highlighter described in the approved design and implementation plan.
Scope
zle-line-pre-redraw, with a persistent Zig helper per interactive session and no process spawn per edit.-e/-Eand shell-cinvocations (sh, Dash, Bash, Ksh, and Zsh).shgrammar forsh/Dash, Bash grammar for Bash, and explicitly approximate Bash fallback for Ksh.sh/Perl grammars plus an explicitly installed, tiered optional grammar catalog.Acceptance criteria
sh -c 'zsh -c "perl -e print"', verify incremental requests reuse one worker process, and measure startup/memory/latency.PREBUFFERspan tests, ZLE lifecycle tests, and helper-failure/resource-limit tests pass.region_highlightentries are preserved, and passive plugin loading performs no network access, build, command evaluation, or file creation.Execution constraints
Review the owning issue and branch from
mainasfeature-<issue>. Use the approved subagent-driven execution method. Run the feasibility gate before product work; stop for review if it fails.