Skip to content

Parser gap: support reverse-subscript patterns used in parameter expansion #15

Description

@ss-o

Summary

The initial real-code survey found a frontend gap around reverse-subscript patterns used inside parameter expansion.

Observed example

  • zsh-plugins/zsh-fancy-completions/lib/completion.zsh
    • ${${${_comps[(I)-value-*]#*,}%%,*}:#-*-}

Official docs context

The Zsh manual documents subscript flags such as i / I and explains that reverse subscripting interprets the completed subscript expression as a pattern. The failure reproduces at the smaller form ${_comps[(I)-value-*]}, so the relevant gap is reverse-subscript pattern parsing rather than nested parameter expansion itself.

Suggested project triage

  • Type: Parser gap
  • Priority: High
  • Effort: Medium
  • Status: Ready

Acceptance criteria

  • A minimized reverse-subscript-pattern fixture is added.
  • The issue links the observed production form to the documented subscript grammar.
  • The case remains distinct from generic nested expansion and from filename-generation syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    corpusparser-gapstatus:blockedCannot proceed until an external dependency or decision changes.type:bugSomething is broken or behaving incorrectly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions