module Chronic
def tokens_to_span(tokens, options)
def tokens_to_span(tokens, options) definitions = definitions(options) definitions.each do |type, handlers| handlers.each do |handler| next unless handler.match(tokens, definitions) good_tokens = case type when :date, :endian, :anchor tokens.reject { |o| o.get_tag Separator } when :arrow tokens.reject { |o| o.get_tag(SeparatorAt) || o.get_tag(SeparatorSlashOrDash) || o.get_tag(SeparatorComma) } else tokens end if handler.handler_method return handler.invoke(type, good_tokens, options) end end end puts "-none" if Chronic.debug return nil end