diff options
Diffstat (limited to 'crates/ra_mbe/src/mbe_expander.rs')
-rw-r--r-- | crates/ra_mbe/src/mbe_expander.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_mbe/src/mbe_expander.rs b/crates/ra_mbe/src/mbe_expander.rs index a74e477d6..6ada580cc 100644 --- a/crates/ra_mbe/src/mbe_expander.rs +++ b/crates/ra_mbe/src/mbe_expander.rs | |||
@@ -166,6 +166,11 @@ fn match_lhs(pattern: &crate::Subtree, input: &mut TtCursor) -> Result<Bindings, | |||
166 | input.eat_block().ok_or(ExpandError::UnexpectedToken)?.clone(); | 166 | input.eat_block().ok_or(ExpandError::UnexpectedToken)?.clone(); |
167 | res.inner.insert(text.clone(), Binding::Simple(block.into())); | 167 | res.inner.insert(text.clone(), Binding::Simple(block.into())); |
168 | } | 168 | } |
169 | "meta" => { | ||
170 | let meta = | ||
171 | input.eat_meta().ok_or(ExpandError::UnexpectedToken)?.clone(); | ||
172 | res.inner.insert(text.clone(), Binding::Simple(meta.into())); | ||
173 | } | ||
169 | "item" => { | 174 | "item" => { |
170 | let item = | 175 | let item = |
171 | input.eat_item().ok_or(ExpandError::UnexpectedToken)?.clone(); | 176 | input.eat_item().ok_or(ExpandError::UnexpectedToken)?.clone(); |