Refactor parser handle mult-char punct internally

This commit is contained in:
Edwin Cheng
2019-04-28 23:46:03 +08:00
parent 1dd3d9bc2d
commit d436ab0581
9 changed files with 183 additions and 130 deletions

View File

@@ -383,7 +383,7 @@ pub(crate) fn token_tree(p: &mut Parser) {
return;
}
R_PAREN | R_BRACK => p.err_and_bump("unmatched brace"),
_ => p.bump(),
_ => p.bump_raw(),
}
}
p.expect(closing_paren_kind);