Skip to content

Commit

Permalink
fixes a couple of defects for attributeChain
Browse files Browse the repository at this point in the history
In addition, this commit also addresses the PrettyDiff issue caused by Angle Brackets being processed as HTML delimiters and thus breaking the parse when lexing Liquid attributes.

The actual issue was submitted for Twig but also wreaked havoc in Liquid. This defect was fixed by keeping track of entry points of tokens, ie: when we are within a Liquid template tag ({{ or {%) > (%} or }}) then we assigned a variable which allows us to skip interception of angle brackets that were being used in control based conditions like {% if x > 1 %}

See:
prettydiff/prettydiff#621
  • Loading branch information
panoply committed Jul 10, 2022
1 parent 3558ae2 commit b8afd49
Showing 1 changed file with 290 additions and 207 deletions.
Loading

0 comments on commit b8afd49

Please sign in to comment.