@carlwr/zsh-lexicon
    Preparing search index...

    Interface ComplexCommandDoc

    Complex command — grammar.yo "Complex Commands" section plus matching "Alternate Forms for Complex Commands" entries.

    Overlap with reserved_word on head keywords (for, if, while, ..., [[, {, time) is deliberate; classifyOrder places this category first.

    interface ComplexCommandDoc {
        category: "complex_command";
        id: Documented<"complex_command">;
        display: string;
        sig: string;
        desc: string;
        alternateForms: readonly AlternateForm[];
        bodyKeywords: readonly string[];
    }

    Hierarchy (View Summary)

    Index
    category: "complex_command"

    The record's category — the Lexicon map it sits in; in the JSON, its file. One constant per record definition.

    id: Documented<"complex_command">

    The record's lexicon key: a shell-safe slug — printable ASCII without whitespace, non-empty.

    display: string

    Surface form for display: printable ASCII with spaces, non-empty. The id unless the manual's form differs from it:

    • normalized in the id: an option's AUTO_CD
    • not shell-safe: a redirection's > word, a history modifier's h [ digits ]
    • with argument markers: a flag's j:string:
    sig: string

    Usage signature from the upstream zsh manual.

    desc: string

    Manual prose as markdown — paragraphs, inline and fenced code; occasionally *emphasis*, bullets or a heading. Every desc field has this shape.

    alternateForms: readonly AlternateForm[]

    Alternate synopses; may be empty.

    bodyKeywords: readonly string[]

    Body-position tt tokens in the canonical synopsis (do, done, esac, ...).