Skip to content

Commit

Permalink
add [ to FOLLOW(ty) and FOLLOW(path)
Browse files Browse the repository at this point in the history
Following RFC 1462 (amending 550). Closes rust-lang#31135.
  • Loading branch information
durka authored and pnkfelix committed Feb 5, 2016
1 parent 9e3bf5a commit 46049ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/ext/tt/macro_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ fn is_in_follow(_: &ExtCtxt, tok: &Token, frag: &str) -> Result<bool, String> {
},
"path" | "ty" => {
match *tok {
OpenDelim(token::DelimToken::Brace) |
OpenDelim(token::DelimToken::Brace) | OpenDelim(token::DelimToken::Bracket) |
Comma | FatArrow | Colon | Eq | Gt | Semi | BinOp(token::Or) => Ok(true),
Ident(i, _) if (i.name.as_str() == "as" ||
i.name.as_str() == "where") => Ok(true),
Expand Down

0 comments on commit 46049ee

Please sign in to comment.