Accept m!{ .. }.method()
and m!{ .. }?
statements.
This commit is contained in:
parent
fbdff7fae9
commit
3caf0bcdeb
1 changed files with 14 additions and 11 deletions
|
@ -155,7 +155,10 @@ impl<'a> Parser<'a> {
|
||||||
|
|
||||||
let mac = MacCall { path, args, prior_type_ascription: self.last_type_ascription };
|
let mac = MacCall { path, args, prior_type_ascription: self.last_type_ascription };
|
||||||
|
|
||||||
let kind = if delim == token::Brace || self.token == token::Semi || self.token == token::Eof
|
let kind =
|
||||||
|
if (delim == token::Brace && self.token != token::Dot && self.token != token::Question)
|
||||||
|
|| self.token == token::Semi
|
||||||
|
|| self.token == token::Eof
|
||||||
{
|
{
|
||||||
StmtKind::MacCall(P(MacCallStmt { mac, style, attrs, tokens: None }))
|
StmtKind::MacCall(P(MacCallStmt { mac, style, attrs, tokens: None }))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue