use enumerate in place of 'for ti in range(i, tokens.len()) ... match tokens[ti] ...'
auto merge of #9030 : tikue/rust/glob, r=huonw