Skip to main content

Module shell_syntax

Module shell_syntax 

Source
Expand description

Shell syntax helpers for • Ran tool-call lines.

Extracted from src/agent/runloop/unified/tool_pipeline/pty_stream/segments.rs so both live PTY rendering and the compact-activity row share one tokenizer + palette. Keeps command/args/option/keyword coloring DRY.

Structs§

ShellLineStyles

Functions§

is_bash_keyword
is_command_separator
line_to_compact_segments
shell_syntax_segments
tokenize_preserve_whitespace