preserve token spacing

This commit is contained in:
Aleksey Kladov 2019-01-31 18:51:17 +03:00
parent 5934738854
commit ad80a0c551
7 changed files with 59 additions and 30 deletions

View file

@ -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,
}
}