Skip to content

fix(theme-check): preserve quoted loop lookup keys - #1320

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:codex/fix-for-loop-quoted-lookup-spaces
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:codex/fix-for-loop-quoted-lookup-spaces

Conversation

@efegokdemir

@efegokdemir efegokdemir commented Oct 2, 2026 •

Copy link
Copy Markdown

Fixes #1204

The fragment splitter now keeps dotted and bracketed variable lookups together, including quoted keys with spaces. This prevents the LiquidHTMLSyntaxError false positive and destructive autofix.

Regression coverage uses the reported for-loop form: no offense is emitted and autofix leaves the source unchanged; a utility test verifies the lookup stays one fragment.

Tests run:

  • Relevant LiquidHTMLSyntaxError Vitest files: 25 passed.
  • theme-check-common type-check passed.
  • Prettier check on all modified files passed.
  • git diff --check passed.

@efegokdemir
efegokdemir requested a review from a team as a code owner October 2, 2026 22:49

This branch has not been deployed

No deployments
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.

theme-check incorrectly flags options_by_name keys containing spaces as invalid

1 participant