Skip to content

Remove "strict2" from bare bracket error message - #2077

Merged
aswamy merged 1 commit into
mainfrom
remove-strict2-from-error-message
Apr 24, 2026
Merged

Remove "strict2" from bare bracket error message#2077
aswamy merged 1 commit into
mainfrom
remove-strict2-from-error-message

Conversation

@aswamy

@aswamy aswamy commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes the strict2 mode qualifier from the bare bracket access error message in lib/liquid/parser.rb so the error reads generically regardless of which parser surfaced it.

Test plan

  • Existing tests (e.g. test_assign_rejects_brackets_in_variable_name_in_strict2, test_tablerow_with_bracketed_access_in_strict2_mode) continue to pass — they only assert that a SyntaxError is raised, not the exact message.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aswamy
aswamy requested a review from a team April 24, 2026 20:20
@aswamy
aswamy merged commit 6d81b1b into main Apr 24, 2026
14 checks passed
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.

2 participants