Skip to content

shell/syntax: stabilize parameter expansion metadata - #807

Merged
ewhauser merged 1 commit into
mainfrom
ewhauser/stabilize-param-exp-feature-metadata
Mar 30, 2026
Merged

ewhauser merged 1 commit into
mainfrom
ewhauser/stabilize-param-exp-feature-metadata

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

  • stabilize parameter expansion feature metadata across lexer chunk boundaries
  • classify the tilde-flag subtype by flag syntax instead of a raw substring match
  • add chunked-read regressions for flag and quoted-index metadata

Why

  • metadata helpers only inspected the active lexer chunk, so machine-readable fields could change with buffer boundaries
  • tilde subtype detection matched any ~ in the raw flag text, which over-classified separator payload forms like ${(s.~.)foo}

Validation

  • make lint
  • go test ./shell/syntax -run TestParseLangErrorFeatureMetadata -count=1
  • go test ./shell/syntax -count=1

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b27deed659

ℹ️ 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".

Comment thread shell/syntax/parser.go Resolved
@ewhauser
ewhauser merged commit a665177 into main Mar 30, 2026
16 checks passed
@ewhauser
ewhauser deleted the ewhauser/stabilize-param-exp-feature-metadata branch March 30, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant