|
with the pat
macro fragment specifier
#4581
Labels
A-syntaxext
Area: Syntax extensions
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Hi,
I made this macro:
… which is pretty useful for constructs like
if is_match!(next_char(), '0'..'9')
.However this does not work with macro "alternatives":
if is_match!(next_char(), 'a'..'z' | 'A'..'Z')
Is there a reason this couldn’t work?
The text was updated successfully, but these errors were encountered: