mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
preserve token spacing
This commit is contained in:
parent
5934738854
commit
ad80a0c551
7 changed files with 59 additions and 30 deletions
|
@ -28,7 +28,7 @@ impl<'a> TtCursor<'a> {
|
|||
|
||||
pub(crate) fn at_char(&self, char: char) -> bool {
|
||||
match self.at_punct() {
|
||||
Some(tt::Punct { char: c }) if *c == char => true,
|
||||
Some(tt::Punct { char: c, .. }) if *c == char => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue