Don't fail on empty callargs

This commit is contained in:
ConnorSkees 2020-01-26 10:52:43 -05:00
parent 43866eb142
commit 43c7914622

View File

@ -207,6 +207,9 @@ pub(crate) fn eat_call_args<I: Iterator<Item = Token>>(
} }
} }
TokenKind::Symbol(Symbol::CloseParen) => { TokenKind::Symbol(Symbol::CloseParen) => {
if val.is_empty() {
break;
}
match name { match name {
Some(name) => args.insert( Some(name) => args.insert(
name, name,