New FoldKinds - Consts, Statics
This commit is contained in:
parent
f6702dda9a
commit
23601454fe
@ -17,6 +17,8 @@ pub enum FoldKind {
|
|||||||
Block,
|
Block,
|
||||||
ArgList,
|
ArgList,
|
||||||
Region,
|
Region,
|
||||||
|
Consts,
|
||||||
|
Statics,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@ -250,6 +252,8 @@ mod tests {
|
|||||||
FoldKind::Block => "block",
|
FoldKind::Block => "block",
|
||||||
FoldKind::ArgList => "arglist",
|
FoldKind::ArgList => "arglist",
|
||||||
FoldKind::Region => "region",
|
FoldKind::Region => "region",
|
||||||
|
FoldKind::Consts => "consts",
|
||||||
|
FoldKind::Statics => "statics"
|
||||||
};
|
};
|
||||||
assert_eq!(kind, &attr.unwrap());
|
assert_eq!(kind, &attr.unwrap());
|
||||||
}
|
}
|
||||||
@ -472,7 +476,7 @@ const SECOND_CONST: &str = "second";</fold>
|
|||||||
fn fold_consecutive_static() {
|
fn fold_consecutive_static() {
|
||||||
check(
|
check(
|
||||||
r#"
|
r#"
|
||||||
<fold consts>static FIRST_STATIC: &str = "first";
|
<fold statics>static FIRST_STATIC: &str = "first";
|
||||||
static SECOND_STATIC: &str = "second";</fold>
|
static SECOND_STATIC: &str = "second";</fold>
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user