diff options
Diffstat (limited to 'crates/ra_mbe')
-rw-r--r-- | crates/ra_mbe/src/mbe_parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_mbe/src/mbe_parser.rs b/crates/ra_mbe/src/mbe_parser.rs index 110783689..8e1e31e7d 100644 --- a/crates/ra_mbe/src/mbe_parser.rs +++ b/crates/ra_mbe/src/mbe_parser.rs | |||
@@ -124,6 +124,8 @@ mod tests { | |||
124 | expect_err("invalid", "subtree"); | 124 | expect_err("invalid", "subtree"); |
125 | 125 | ||
126 | is_valid("($i:ident) => ()"); | 126 | is_valid("($i:ident) => ()"); |
127 | is_valid("($($i:ident)*) => ($_)"); | ||
128 | |||
127 | expect_err("$i:ident => ()", "subtree"); | 129 | expect_err("$i:ident => ()", "subtree"); |
128 | expect_err("($i:ident) ()", "`=`"); | 130 | expect_err("($i:ident) ()", "`=`"); |
129 | expect_err("($($i:ident)_) => ()", "repeat"); | 131 | expect_err("($($i:ident)_) => ()", "repeat"); |