aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/macros/mbe.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crates/ra_hir/src/macros/mbe.rs b/crates/ra_hir/src/macros/mbe.rs
index 2d7965b62..1408ed511 100644
--- a/crates/ra_hir/src/macros/mbe.rs
+++ b/crates/ra_hir/src/macros/mbe.rs
@@ -14,6 +14,7 @@ struct Rule {
14enum TokenTree { 14enum TokenTree {
15 Leaf(Leaf), 15 Leaf(Leaf),
16 Subtree(Subtree), 16 Subtree(Subtree),
17 Repeat(Repeat),
17} 18}
18 19
19enum Leaf { 20enum Leaf {
@@ -35,6 +36,17 @@ enum Delimiter {
35 None, 36 None,
36} 37}
37 38
39struct Repeat {
40 subtree: Subtree,
41 kind: RepeatKind,
42}
43
44enum RepeatKind {
45 ZeroOrMore,
46 OneOrMore,
47 ZeroOrOne,
48}
49
38struct Literal { 50struct Literal {
39 text: SmolStr, 51 text: SmolStr,
40} 52}