lib/parser: cleanup match_number()