mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Complete items which are followed by arguments
This commit is contained in:
parent
3d88ada6d4
commit
9fb24aba78
2 changed files with 4 additions and 2 deletions
|
|
@ -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,)*
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue