Skip to content

Instantly share code, notes, and snippets.

@rschulman
Last active August 19, 2017 13:04
Show Gist options
  • Save rschulman/c2c494613d582e7cfb9ae287cf36a8e3 to your computer and use it in GitHub Desktop.
Save rschulman/c2c494613d582e7cfb9ae287cf36a8e3 to your computer and use it in GitHub Desktop.
named!(deadline<&str, &str>, do_parse!(
t: tag_no_case_s!(" DEADLINE ") >>
d: alt!(take_until_s!(" SCHEDULED") | rest_s) >>
(d)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment