pub fn any_keyword(s: &str) -> IResult<&str, &str>
Expand description

Matches any keyword

Example:

assert!(any_keyword("if").is_ok()); // succeeds
assert!(any_keyword("hello").is_err()); // fails, "hello" is not a keyword
assert!(any_keyword("1234").is_err()); // fails, 1234 is not a word