Minor fallout/update FOLLOW sets
This commit is contained in:
parent
ac8e10519a
commit
bd4119f965
3 changed files with 18 additions and 10 deletions
|
|
@ -422,7 +422,7 @@ fn is_in_follow(cx: &ExtCtxt, tok: &Token, frag: &str) -> bool {
|
|||
},
|
||||
"stmt" | "expr" => {
|
||||
match *tok {
|
||||
Comma | Semi => true,
|
||||
FatArrow | Comma | Semi => true,
|
||||
_ => false
|
||||
}
|
||||
},
|
||||
|
|
@ -434,7 +434,7 @@ fn is_in_follow(cx: &ExtCtxt, tok: &Token, frag: &str) -> bool {
|
|||
},
|
||||
"path" | "ty" => {
|
||||
match *tok {
|
||||
Comma | RArrow | Colon | Eq | Gt => true,
|
||||
Comma | FatArrow | Colon | Eq | Gt => true,
|
||||
Ident(i, _) if i.as_str() == "as" => true,
|
||||
_ => false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue