parent
e546452727
commit
fd88e2b729
2 changed files with 52 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue