diff --git a/src/unit_defs.rs b/src/unit_defs.rs index 2cba2b5..7c658b0 100644 --- a/src/unit_defs.rs +++ b/src/unit_defs.rs @@ -319,6 +319,8 @@ fn parse_term(mut iter: &mut Iter) -> Expr { loop { match iter.next().unwrap() { Token::Hash => break, + Token::Eof | Token::Comment(_) | Token::Newline => + return Expr::Error(format!("Unterminated date literal")), x => out.push(x), } }