From d1ea6d2dd6b6f2918adb622155ce964117179481 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 18 Jan 2020 08:51:47 -0500 Subject: [PATCH] Fix regression: empty style should not be treated as an error --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) => {