add block matcher

This commit is contained in:
Edwin Cheng 2019-04-19 19:33:29 +08:00
parent 8092b6487f
commit 762819864f
6 changed files with 64 additions and 0 deletions

View file

@ -50,6 +50,10 @@ impl<'a> Parser<'a> {
self.parse(ra_parser::parse_block)
}
pub fn parse_meta(self) -> Option<tt::TokenTree> {
self.parse(ra_parser::parse_meta)
}
pub fn parse_item(self) -> Option<tt::TokenTree> {
self.parse(ra_parser::parse_item)
}