syntax: Use Token
in Parser
This commit is contained in:
parent
c0c57acd7b
commit
aa6fba98ae
10 changed files with 126 additions and 126 deletions
|
@ -260,7 +260,7 @@ fn parse_inline_asm<'a>(
|
|||
loop {
|
||||
// MOD_SEP is a double colon '::' without space in between.
|
||||
// When encountered, the state must be advanced twice.
|
||||
match (&p.token, state.next(), state.next().next()) {
|
||||
match (&p.token.kind, state.next(), state.next().next()) {
|
||||
(&token::Colon, StateNone, _) |
|
||||
(&token::ModSep, _, StateNone) => {
|
||||
p.bump();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue