diff --git a/src/main.rs b/src/main.rs index ec89578..1155cb9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -492,7 +492,10 @@ pub(crate) fn eat_expr>( toks.next(); devour_whitespace(toks); return Ok(Some(Expr::Style( - Style::from_tokens(&values, scope).unwrap(), + match Style::from_tokens(&values, scope) { + Ok(x) => x, + Err(_) => return Ok(None), + }, ))); } TokenKind::Symbol(Symbol::OpenCurlyBrace) => {