lib/dentaku/tokenizer.rb in dentaku-0.2.5 vs lib/dentaku/tokenizer.rb in dentaku-0.2.6

- old
+ new

@@ -34,12 +34,12 @@ when '<' then :lt 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)\b', lambda {|raw| raw.strip.to_sym }), - TokenScanner.new(:identifier, '\w+\b', lambda {|raw| raw.downcase.to_sym }) + 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 }) ] LPAREN = TokenMatcher.new(:grouping, :open) RPAREN = TokenMatcher.new(:grouping, :close)