We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
macro_rules! m { (...) => ... }
1 parent 7129883 commit 7d4742eCopy full SHA for 7d4742e
src/libsyntax/parse/parser.rs
@@ -1131,8 +1131,13 @@ class parser {
1131
// the interpolation of matchers
1132
maybe_whole!{self, nt_matchers};
1133
let name_idx = @mut 0u;
1134
- return self.parse_matcher_subseq(
1135
- name_idx, token::LBRACE, token::RBRACE);
+ return alt self.token {
+ token::LBRACE | token::LPAREN | token::LBRACKET {
1136
+ self.parse_matcher_subseq(name_idx, copy self.token,
1137
+ token::flip_delimiter(self.token))
1138
+ }
1139
+ _ { self.fatal(~"expected open delimiter"); }
1140
1141
}
1142
1143
0 commit comments