1
Fork 0

syntax: Parse global paths in patterns

Closes #6449
This commit is contained in:
Alex Crichton 2014-05-20 20:28:00 -07:00
parent e546452727
commit fd88e2b729
2 changed files with 52 additions and 1 deletions

View file

@ -2920,7 +2920,7 @@ impl<'a> Parser<'a> {
_ => {}
}
if !is_ident_or_path(&self.token)
if (!is_ident_or_path(&self.token) && self.token != token::MOD_SEP)
|| self.is_keyword(keywords::True)
|| self.is_keyword(keywords::False) {
// Parse an expression pattern or exp .. exp.