Complete items which are followed by arguments

This commit is contained in:
Tad Hardesty 2018-07-31 20:51:52 -07:00
parent 3d88ada6d4
commit 9fb24aba78
2 changed files with 4 additions and 2 deletions

View file

@ -102,10 +102,10 @@ macro_rules! if_annotation {
}
macro_rules! match_annotation {
($a:expr; $($p:pat => $b:block,)*) => {
($a:expr; $($($p:pat)|* => $b:block,)*) => {
for (_, thing) in $a.clone() {
match thing {
$($p => $b,)*
$($($p)|* => $b,)*
_ => {}
}
}

View file

@ -951,6 +951,7 @@ handle_method_call! {
_ => {}
}
},
Annotation::UnscopedCall(query) |
Annotation::UnscopedVar(query) => {
let (ty, proc_name) = self.find_type_context(&iter);
@ -1003,6 +1004,7 @@ handle_method_call! {
next = ty.parent_type();
}
},
Annotation::ScopedCall(priors, query) |
Annotation::ScopedVar(priors, query) => {
let mut next = self.find_scoped_type(&iter, priors);
skip.clear();