You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fw42 that's part of the ParsingQuirksTest suite, which exists in order to document quirks in Liquid's parsing logic. Historically there have been a number of cases where we've fixed things like this and inadvertently break a bunch of shop's templates which relied on the quirk in a bad way. As with all of the tests in that file, it doesn't mean we can't change the behaviour, but the test is there as a regression to raise a red flag when we do change it to say "we need to be careful about breaking templates".
Looking again at the commit in which I introduced that test, it looks like I had fixed something previously in a different way which broke this weird quirk:
Activity
fw42 commentedon Jul 12, 2013
Thanks @Tetsuro for noticing.
fw42 commentedon Jul 12, 2013
I guess we should throw an error?
trishume commentedon Jul 26, 2013
There is actually a test that asserts that this bug exists:
fw42 commentedon Jul 26, 2013
@jamesmacaulay, why?
jamesmacaulay commentedon Jul 26, 2013
@fw42 that's part of the ParsingQuirksTest suite, which exists in order to document quirks in Liquid's parsing logic. Historically there have been a number of cases where we've fixed things like this and inadvertently break a bunch of shop's templates which relied on the quirk in a bad way. As with all of the tests in that file, it doesn't mean we can't change the behaviour, but the test is there as a regression to raise a red flag when we do change it to say "we need to be careful about breaking templates".
jamesmacaulay commentedon Jul 26, 2013
Looking again at the commit in which I introduced that test, it looks like I had fixed something previously in a different way which broke this weird quirk:
11dc18b