diff --git a/lib/liquid/tags/case.rb b/lib/liquid/tags/case.rb index d759a41a..d9226bd1 100644 --- a/lib/liquid/tags/case.rb +++ b/lib/liquid/tags/case.rb @@ -10,10 +10,8 @@ module Liquid # @description # Creates a switch statement to execute a particular block of code when a variable has a specified value. # `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. class Case < Block Syntax = /(#{QuotedFragment})/o WhenSyntax = /(#{QuotedFragment})(?:(?:\s+or\s+|\s*\,\s*)(#{QuotedFragment}.*))?/om