Skip to main content

Module context

Module context 

Source
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§

ContextManager
Context stack manager
ContextStack
A saved context entry
HistStack
History state that gets pushed onto context stack
LexStack
Lexer state that gets pushed onto context stack
ParseStack
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)