forked from koniifer/ableos
o
This commit is contained in:
parent
7258a66755
commit
5a84b2a96d
|
@ -333,7 +333,11 @@ impl<'a, 'b> Parser<'a, 'b> {
|
||||||
T::Continue => E::Continue { pos: token.start },
|
T::Continue => E::Continue { pos: token.start },
|
||||||
T::Return => E::Return {
|
T::Return => E::Return {
|
||||||
pos: token.start,
|
pos: token.start,
|
||||||
val: (self.token.kind != T::Semi).then(|| self.ptr_expr()),
|
val: (!matches!(
|
||||||
|
self.token.kind,
|
||||||
|
T::Semi | T::RBrace | T::RBrack | T::RParen | T::Comma
|
||||||
|
))
|
||||||
|
.then(|| self.ptr_expr()),
|
||||||
},
|
},
|
||||||
T::Fn => E::Closure {
|
T::Fn => E::Closure {
|
||||||
pos: token.start,
|
pos: token.start,
|
||||||
|
|
Loading…
Reference in a new issue