Fix comments.

This commit is contained in:
thedarkone
2011-01-28 21:16:22 -05:00
committed by Tobias Lütke
parent 6d0bb3303c
commit aa678302d6
+6 -6
View File
@@ -129,17 +129,17 @@ module Liquid
false false
when 'blank' when 'blank'
:blank? :blank?
when 'empty' # Single quoted strings when 'empty'
:empty? :empty?
when /^'(.*)'$/ # Double quoted strings when /^'(.*)'$/ # Single quoted strings
$1.to_s $1.to_s
when /^"(.*)"$/ # Integer and floats when /^"(.*)"$/ # Double quoted strings
$1.to_s $1.to_s
when /^(\d+)$/ # Ranges when /^(\d+)$/ # Integer and floats
$1.to_i $1.to_i
when /^\((\S+)\.\.(\S+)\)$/ # Floats when /^\((\S+)\.\.(\S+)\)$/ # Ranges
(resolve($1).to_i..resolve($2).to_i) (resolve($1).to_i..resolve($2).to_i)
when /^(\d[\d\.]+)$/ when /^(\d[\d\.]+)$/ # Floats
$1.to_f $1.to_f
else else
variable(key) variable(key)