lib/dentaku/tokenizer.rb in dentaku-0.1.3 vs lib/dentaku/tokenizer.rb in dentaku-0.2.1

- old
+ new

@@ -34,10 +34,10 @@ when '>' then :gt when '=' then :eq end end), TokenScanner.new(:combinator, '(and|or)\b', lambda {|raw| raw.strip.to_sym }), - TokenScanner.new(:function, '(if)\b', lambda {|raw| raw.strip.to_sym }), + TokenScanner.new(:function, '(if|round)\b', lambda {|raw| raw.strip.to_sym }), TokenScanner.new(:identifier, '[A-Za-z_]+', lambda {|raw| raw.to_sym }) ] LPAREN = TokenMatcher.new(:grouping, :open) RPAREN = TokenMatcher.new(:grouping, :close)