diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-30 16:07:32 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-30 16:07:32 +0800 |
commit | a45cb623dd862a0f08345b60be18f041afbaa3e4 (patch) | |
tree | 12a43a26a9d370c6facf94eb3ae507266554f2fb /src/macro_rules/mod.cpp | |
parent | 787bd355795e71b70314d04dd972d71f71e9aa1f (diff) | |
download | mrust-a45cb623dd862a0f08345b60be18f041afbaa3e4.tar.gz |
macro_rules! - Allow _ to match :pat
Diffstat (limited to 'src/macro_rules/mod.cpp')
-rw-r--r-- | src/macro_rules/mod.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macro_rules/mod.cpp b/src/macro_rules/mod.cpp index 0d542602..2803b061 100644 --- a/src/macro_rules/mod.cpp +++ b/src/macro_rules/mod.cpp @@ -32,6 +32,7 @@ bool is_token_pat(eTokenType tt) { case TOK_PAREN_OPEN:
case TOK_SQUARE_OPEN:
+ case TOK_UNDERSCORE:
case TOK_AMP:
case TOK_RWORD_BOX:
case TOK_RWORD_REF:
|