mirror of
https://github.com/helix-editor/helix
synced 2026-07-31 12:57:07 +02:00
16 lines
391 B
Rust
16 lines
391 B
Rust
fn m(x: Shape) {
|
|
match x {
|
|
crate::Shape::Circle(r) => r,
|
|
// ^ @type
|
|
// ^ @type.enum.variant
|
|
geom::Style::Bold { weight } => weight,
|
|
// ^ @type
|
|
// ^ @type.enum.variant
|
|
// ^ @variable.other.member
|
|
Flag::MAX => 0,
|
|
// ^ @type
|
|
// ^ @constant
|
|
_ => 1,
|
|
};
|
|
}
|