Skip to content

WIP - #2017

Open
charlespwd wants to merge 6 commits into
v6from
cp-one-parser
Open

WIP#2017
charlespwd wants to merge 6 commits into
v6from
cp-one-parser

Conversation

@charlespwd

@charlespwdcharlespwd commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

Reviewers, please note base branch to PR.

In this PR

  • Remove Environment.error_mode
  • Remove lax_parse, strict_parse + :warn error mode
  • Rename strict2_parse to parse_markup
  • Remove warnings system
  • Setup History.md

@charlespwd
charlespwd changed the base branch from main to v6December 2, 2025 14:41
@charlespwd
charlespwd marked this pull request as ready for review December 2, 2025 15:28

@karreirokarreiro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for this PR, @charlespwd! Great stuff! I've left some comments that may be applied in follow-up PRs.

Comment threadlib/liquid/parser_switching.rb
Comment threadlib/liquid/parse_context.rb Outdated
Comment threadlib/liquid/tags/case.rb

@karreirokarreiro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for the changes, @charlespwd!

Comment threadHistory.md
* As tag argument `{% render 'snip', enabled: a or b %}`
* As conditional tag argument `{% if cond %}` (extending previous behaviour)
* (TODO) Add support for subexpression prioritization and associativity
* In ascending order of priority:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is not missing from this list?

@charlespwdcharlespwdDec 17, 2025

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Deep pull :D It's not in scope (yet?), but, unlike last time, we wouldn't be held back by lax anymore and the system would leave space for a UnaryExpression node with an operator and an expression.

@charlespwd
charlespwd changed the base branch from v6 to mainJanuary 12, 2026 16:58
@charlespwd
charlespwd changed the base branch from main to v6January 12, 2026 16:58
@charlespwd
charlespwdforce-pushed the cp-one-parser branch 2 times, most recently from cf8fdf6 to d0ccab5CompareJanuary 12, 2026 18:52
@charlespwd
charlespwd changed the base branch from v6 to mainJanuary 14, 2026 14:59
@charlespwd
charlespwd changed the base branch from main to v6January 14, 2026 14:59
This branch gates lax-mode-only specs behind lax_parsing feature:
- shopify_production_recordings: 22 specs
- liquid_ruby: 16 specs
- basics: error regex updated
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@graygilmore
graygilmore removed their request for review March 23, 2026 16:01
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@charlespwd@karreiro@TWiStErRob