5 // Check that when `?` is followed by what looks like a Kleene operator (?, +, and *)
6 // then that `?` is not interpreted as a separator. In other words, `$(pat)?+` matches `pat +`
7 // or `+` but does not match `pat` or `pat ? pat`.
13 ($($a:ident)? ? $num:expr) => {
17 ($($a:ident)? + $num:expr) => {
21 ($($a:ident)? * $num:expr) => {
24 // Check for `;`, not a kleene operator.
25 ($($a:ident)? ; $num:expr) => {
39 // Accept 0 repetitions.
45 // Accept 1 repetition.