Handle trailing semicolons in Value
This commit is contained in:
parent
ddb5b6f32a
commit
bb22fb3464
@ -159,6 +159,7 @@ impl Value {
|
|||||||
None => return Some(left),
|
None => return Some(left),
|
||||||
};
|
};
|
||||||
match next.kind {
|
match next.kind {
|
||||||
|
TokenKind::Symbol(Symbol::SemiColon) => return Some(left),
|
||||||
TokenKind::Symbol(Symbol::Comma) => {
|
TokenKind::Symbol(Symbol::Comma) => {
|
||||||
toks.next();
|
toks.next();
|
||||||
devour_whitespace_or_comment(toks);
|
devour_whitespace_or_comment(toks);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user