This commit is contained in:
Andy Waite
2022-03-14 13:01:10 -04:00
parent dc3162fcd2
commit c24d3dab32
-2
View File
@@ -12,8 +12,6 @@ module Liquid
# `case` initializes the switch statement, and `when` statements define the various conditions. # `case` initializes the switch statement, and `when` statements define the various conditions.
# #
# An optional `else` statement at the end of the case provides code to execute if none of the conditions are met. # An optional `else` statement at the end of the case provides code to execute if none of the conditions are met.
An optional else statement at the end of the case provides code to execute if none of the conditions are met.
class Case < Block class Case < Block
Syntax = /(#{QuotedFragment})/o Syntax = /(#{QuotedFragment})/o
WhenSyntax = /(#{QuotedFragment})(?:(?:\s+or\s+|\s*\,\s*)(#{QuotedFragment}.*))?/om WhenSyntax = /(#{QuotedFragment})(?:(?:\s+or\s+|\s*\,\s*)(#{QuotedFragment}.*))?/om