lib/dentaku/tokenizer.rb in dentaku-0.2.7 vs lib/dentaku/tokenizer.rb in dentaku-0.2.8

- old
+ new

@@ -35,11 +35,11 @@ when '>' then :gt when '=' then :eq end end), TokenScanner.new(:combinator, '(and|or)\b', lambda {|raw| raw.strip.downcase.to_sym }), - TokenScanner.new(:function, '(if|round|not)\b', lambda {|raw| raw.strip.to_sym }), - TokenScanner.new(:identifier, '\w+\b', lambda {|raw| raw.downcase.to_sym }) + TokenScanner.new(:function, '(if|round|not)\b', lambda {|raw| raw.strip.downcase.to_sym }), + TokenScanner.new(:identifier, '\w+\b', lambda {|raw| raw.strip.downcase.to_sym }) ] LPAREN = TokenMatcher.new(:grouping, :open) RPAREN = TokenMatcher.new(:grouping, :close)