class Chronic::Separator

def self.scan(tokens, options)

Returns:
  • (Array) - list of tokens

Parameters:
  • options (Hash) -- Options specified in {Chronic.parse}
  • tokens (Array) -- Array of tokens to scan
def self.scan(tokens, options)
  tokens.each_index do |i|
    if t = scan_for_commas(tokens[i]) then tokens[i].tag(t); next end
    if t = scan_for_slash_or_dash(tokens[i]) then tokens[i].tag(t); next end
    if t = scan_for_at(tokens[i]) then tokens[i].tag(t); next end
    if t = scan_for_in(tokens[i]) then tokens[i].tag(t); next end
    if t = scan_for_on(tokens[i]) then tokens[i].tag(t); next end
  end
end