diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/macros/mbe.rs | 12 |
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 { | |||
14 | enum TokenTree { | 14 | enum TokenTree { |
15 | Leaf(Leaf), | 15 | Leaf(Leaf), |
16 | Subtree(Subtree), | 16 | Subtree(Subtree), |
17 | Repeat(Repeat), | ||
17 | } | 18 | } |
18 | 19 | ||
19 | enum Leaf { | 20 | enum Leaf { |
@@ -35,6 +36,17 @@ enum Delimiter { | |||
35 | None, | 36 | None, |
36 | } | 37 | } |
37 | 38 | ||
39 | struct Repeat { | ||
40 | subtree: Subtree, | ||
41 | kind: RepeatKind, | ||
42 | } | ||
43 | |||
44 | enum RepeatKind { | ||
45 | ZeroOrMore, | ||
46 | OneOrMore, | ||
47 | ZeroOrOne, | ||
48 | } | ||
49 | |||
38 | struct Literal { | 50 | struct Literal { |
39 | text: SmolStr, | 51 | text: SmolStr, |
40 | } | 52 | } |