mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
Allow macro_rules! m { (...) => ... }
This commit is contained in:
@@ -1131,8 +1131,13 @@ fn parse_matchers() -> ~[matcher] {
|
||||
// the interpolation of matchers
|
||||
maybe_whole!{self, nt_matchers};
|
||||
let name_idx = @mut 0u;
|
||||
return self.parse_matcher_subseq(
|
||||
name_idx, token::LBRACE, token::RBRACE);
|
||||
return alt self.token {
|
||||
token::LBRACE | token::LPAREN | token::LBRACKET {
|
||||
self.parse_matcher_subseq(name_idx, copy self.token,
|
||||
token::flip_delimiter(self.token))
|
||||
}
|
||||
_ { self.fatal(~"expected open delimiter"); }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user