diff options
author | Edwin Cheng <[email protected]> | 2019-04-19 19:19:46 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-04-19 19:19:46 +0100 |
commit | 41c1a639c392355c4f36c555e022f7d4423cace3 (patch) | |
tree | fae803e14cc9a6427e9f857700fb0729e34c3210 /crates | |
parent | d15abaa06fe65a01072c74db55786e97d17365b4 (diff) |
Disable tt matcher
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_mbe/src/mbe_expander.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/crates/ra_mbe/src/mbe_expander.rs b/crates/ra_mbe/src/mbe_expander.rs index 01e29b556..86867111f 100644 --- a/crates/ra_mbe/src/mbe_expander.rs +++ b/crates/ra_mbe/src/mbe_expander.rs | |||
@@ -171,10 +171,14 @@ fn match_lhs(pattern: &crate::Subtree, input: &mut TtCursor) -> Result<Bindings, | |||
171 | input.eat_meta().ok_or(ExpandError::UnexpectedToken)?.clone(); | 171 | input.eat_meta().ok_or(ExpandError::UnexpectedToken)?.clone(); |
172 | res.inner.insert(text.clone(), Binding::Simple(meta.into())); | 172 | res.inner.insert(text.clone(), Binding::Simple(meta.into())); |
173 | } | 173 | } |
174 | "tt" => { | 174 | // FIXME: |
175 | let token = input.eat().ok_or(ExpandError::UnexpectedToken)?.clone(); | 175 | // Enable followiing code when everything is fixed |
176 | res.inner.insert(text.clone(), Binding::Simple(token.into())); | 176 | // At least we can dogfood itself to not stackoverflow |
177 | } | 177 | // |
178 | // "tt" => { | ||
179 | // let token = input.eat().ok_or(ExpandError::UnexpectedToken)?.clone(); | ||
180 | // res.inner.insert(text.clone(), Binding::Simple(token.into())); | ||
181 | // } | ||
178 | "item" => { | 182 | "item" => { |
179 | let item = | 183 | let item = |
180 | input.eat_item().ok_or(ExpandError::UnexpectedToken)?.clone(); | 184 | input.eat_item().ok_or(ExpandError::UnexpectedToken)?.clone(); |