Repository navigation
syntax: classify ${~foo} as typed zsh feature - #803
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9e047ba30c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 118570bbdc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
118570b to
fca3b34
Compare
Summary
${~foo}parsing as a typedsyntax.LangErrorwith a stable feature ID instead of a genericinvalid parameter nameparse error${~foo}prefix in the zsh AST/printer and add syntax regression coverage for both metadata and file tests${~foo}expansion explicitly unsupported for now so parsing does not silently degrade into plain${foo}behaviorWhy
${~foo}was being rejected before the variant-gated feature-reporting path ran, so callers only saw a generic parse error and could not match a stableFeatureID/FeatureDetail.Impact
Analyzers and tooling can now reliably classify this zsh-only parameter-expansion prefix through
syntax.LangError.FeatureID,FeatureDetail, andCategory().Validation
make lintgo test ./shell/syntax ./shell/expand ./internal/shell/...