From a48e33f1391596f5a746279a6e456024254fe908 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 5 May 2019 10:21:26 +0800 Subject: Fixed missing empty vars --- crates/ra_mbe/src/mbe_expander.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/ra_mbe/src/mbe_expander.rs') diff --git a/crates/ra_mbe/src/mbe_expander.rs b/crates/ra_mbe/src/mbe_expander.rs index 4b007647c..3a4dbb5f5 100644 --- a/crates/ra_mbe/src/mbe_expander.rs +++ b/crates/ra_mbe/src/mbe_expander.rs @@ -177,6 +177,9 @@ fn collect_vars(subtree: &crate::Subtree) -> Vec { crate::TokenTree::Subtree(subtree) => { res.extend(collect_vars(subtree)); } + crate::TokenTree::Repeat(crate::Repeat { subtree, .. }) => { + res.extend(collect_vars(subtree)); + } _ => {} } } -- cgit v1.2.3