mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
mbe: handle multi-character separator
This commit is contained in:
parent
767351fb87
commit
a7d411425c
3 changed files with 26 additions and 32 deletions
|
@ -110,16 +110,6 @@ impl PartialEq for Separator {
|
|||
}
|
||||
}
|
||||
|
||||
impl Separator {
|
||||
pub(crate) fn tt_count(&self) -> usize {
|
||||
match self {
|
||||
Separator::Literal(_) => 1,
|
||||
Separator::Ident(_) => 1,
|
||||
Separator::Puncts(it) => it.len(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
enum Mode {
|
||||
Pattern,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue