aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar.rs
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2019-04-18 19:47:29 +0100
committerEdwin Cheng <[email protected]>2019-04-18 19:47:29 +0100
commit3ff5440a503f090032136c37c3d44375d6107db1 (patch)
tree6da9635a94f8fe11c74eb06ceec89cf215dbe78c /crates/ra_parser/src/grammar.rs
parent403cd78baee7e9c2410d04ca0304575e7bbab16d (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.rs6
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
52pub(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
52pub(crate) fn path(p: &mut Parser) { 58pub(crate) fn path(p: &mut Parser) {
53 paths::type_path(p); 59 paths::type_path(p);
54} 60}