summaryrefslogtreecommitdiff
path: root/src/macro_rules/mod.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-15 11:13:39 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-15 11:13:39 +0800
commit7c74d6a7c03af83de0c41260c81460cfe447f8cf (patch)
tree8ac7a7d85faf5b9266149bace1c070df0f6aefec /src/macro_rules/mod.cpp
parent090e92744a921730197a57e55f5697ac8ad1d986 (diff)
downloadmrust-7c74d6a7c03af83de0c41260c81460cfe447f8cf.tar.gz
macro_rules! - Allow match to start an expr
Diffstat (limited to 'src/macro_rules/mod.cpp')
-rw-r--r--src/macro_rules/mod.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/macro_rules/mod.cpp b/src/macro_rules/mod.cpp
index 8b2be7d1..0d542602 100644
--- a/src/macro_rules/mod.cpp
+++ b/src/macro_rules/mod.cpp
@@ -86,6 +86,7 @@ bool is_token_expr(eTokenType tt) {
// Blocks
case TOK_BRACE_OPEN:
+ case TOK_RWORD_MATCH:
case TOK_RWORD_IF:
case TOK_RWORD_FOR:
case TOK_RWORD_WHILE: