Handle trailing semicolons in Value

This commit is contained in:
ConnorSkees 2020-01-25 14:11:32 -05:00
parent ddb5b6f32a
commit bb22fb3464

View File

@ -159,6 +159,7 @@ impl Value {
None => return Some(left),
};
match next.kind {
TokenKind::Symbol(Symbol::SemiColon) => return Some(left),
TokenKind::Symbol(Symbol::Comma) => {
toks.next();
devour_whitespace_or_comment(toks);