Skip to content

Commit

Permalink
Merge pull request #6 from TortiPesto/master
Browse files Browse the repository at this point in the history
Fix mpc_digit()
  • Loading branch information
orangeduck committed Apr 15, 2014
2 parents 7ebd10e + 88fcd2f commit 813ed28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ mpc_parser_t *mpc_newline(void) { return mpc_expect(mpc_char('\n'), "newline");
mpc_parser_t *mpc_tab(void) { return mpc_expect(mpc_char('\t'), "tab"); }
mpc_parser_t *mpc_escape(void) { return mpc_and(2, mpcf_strfold, mpc_char('\\'), mpc_any(), free); }

mpc_parser_t *mpc_digit(void) { return mpc_expect(mpc_oneof("012345689"), "digit"); }
mpc_parser_t *mpc_digit(void) { return mpc_expect(mpc_oneof("0123456789"), "digit"); }
mpc_parser_t *mpc_hexdigit(void) { return mpc_expect(mpc_oneof("0123456789ABCDEFabcdef"), "hex digit"); }
mpc_parser_t *mpc_octdigit(void) { return mpc_expect(mpc_oneof("01234567"), "oct digit"); }
mpc_parser_t *mpc_digits(void) { return mpc_expect(mpc_many1(mpcf_strfold, mpc_digit()), "digits"); }
Expand Down

0 comments on commit 813ed28

Please sign in to comment.