Expand description
Context save and restore for zshrs
Direct port from zsh/Src/context.c
This module provides a stack of saved contexts for history, lexer, and parser state.
Structs§
- Context
Manager - Context stack manager
- Context
Stack - A saved context entry
- Hist
Stack - History state that gets pushed onto context stack
- LexStack
- Lexer state that gets pushed onto context stack
- Parse
Stack - Parser state that gets pushed onto context stack
Constants§
- ZCONTEXT_
HIST - Parts of context that can be saved/restored
- ZCONTEXT_
LEX - ZCONTEXT_
PARSE
Functions§
- zcontext_
is_ toplevel - Check if we’re at top level (no contexts saved)
- zcontext_
restore - Restore full context (global function)
- zcontext_
restore_ partial - Restore partial context (global function)
- zcontext_
save - Save context in full (global function)
- zcontext_
save_ partial - Save partial context (global function)