diff options
author | Edwin Cheng <[email protected]> | 2019-04-18 19:47:29 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-04-18 19:47:29 +0100 |
commit | 3ff5440a503f090032136c37c3d44375d6107db1 (patch) | |
tree | 6da9635a94f8fe11c74eb06ceec89cf215dbe78c /crates/ra_parser/src/grammar.rs | |
parent | 403cd78baee7e9c2410d04ca0304575e7bbab16d (diff) |
Add MacroItems and MacroStmts in grammer.ron
Diffstat (limited to 'crates/ra_parser/src/grammar.rs')
-rw-r--r-- | crates/ra_parser/src/grammar.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs index f8ed1299a..1adc27b80 100644 --- a/crates/ra_parser/src/grammar.rs +++ b/crates/ra_parser/src/grammar.rs | |||
@@ -49,6 +49,12 @@ pub(crate) fn root(p: &mut Parser) { | |||
49 | m.complete(p, SOURCE_FILE); | 49 | m.complete(p, SOURCE_FILE); |
50 | } | 50 | } |
51 | 51 | ||
52 | pub(crate) fn macro_items(p: &mut Parser) { | ||
53 | let m = p.start(); | ||
54 | items::mod_contents(p, false); | ||
55 | m.complete(p, MACRO_ITEMS); | ||
56 | } | ||
57 | |||
52 | pub(crate) fn path(p: &mut Parser) { | 58 | pub(crate) fn path(p: &mut Parser) { |
53 | paths::type_path(p); | 59 | paths::type_path(p); |
54 | } | 60 | } |