diff options
author | Edwin Cheng <[email protected]> | 2019-04-19 11:30:43 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-04-19 11:30:43 +0100 |
commit | 8092b6487f301bf9219c55fc714744fa2616fb9a (patch) | |
tree | ea65ea5146b62c5505737c81c7026bae9973693d /crates/ra_parser/src/grammar.rs | |
parent | ab0a96586fd54858106cb6ac112d61eb657426f6 (diff) |
Add block matcher
Diffstat (limited to 'crates/ra_parser/src/grammar.rs')
-rw-r--r-- | crates/ra_parser/src/grammar.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs index e1762633e..7bae0bc7b 100644 --- a/crates/ra_parser/src/grammar.rs +++ b/crates/ra_parser/src/grammar.rs | |||
@@ -95,6 +95,10 @@ pub(crate) fn stmt(p: &mut Parser, with_semi: bool) { | |||
95 | expressions::stmt(p, with_semi) | 95 | expressions::stmt(p, with_semi) |
96 | } | 96 | } |
97 | 97 | ||
98 | pub(crate) fn block(p: &mut Parser) { | ||
99 | expressions::block(p); | ||
100 | } | ||
101 | |||
98 | pub(crate) fn item(p: &mut Parser) { | 102 | pub(crate) fn item(p: &mut Parser) { |
99 | items::item_or_macro(p, true, items::ItemFlavor::Mod) | 103 | items::item_or_macro(p, true, items::ItemFlavor::Mod) |
100 | } | 104 | } |