From 3cde25959b8ea932df70f00d13d7acdfeec09da5 Mon Sep 17 00:00:00 2001 From: Connor Skees Date: Sat, 4 Jul 2020 18:32:13 -0400 Subject: [PATCH] remove !optional hack --- src/parse/value/parse.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parse/value/parse.rs b/src/parse/value/parse.rs index ef7441f..03f3789 100644 --- a/src/parse/value/parse.rs +++ b/src/parse/value/parse.rs @@ -596,15 +596,11 @@ impl<'a> Parser<'a> { Err(e) => return Some(Err(e)), }; span = span.merge(v.span); - // TODO: we return `None` when encountering `optional` here as a hack for - // supporting `!optional` in `@extend`. In the future, we should have a better - // check for `!optional` as this technically allows `!optional` everywhere match v.node.to_ascii_lowercase().as_str() { "important" => { IntermediateValue::Value(HigherIntermediateValue::Literal(Value::Important)) .span(span) } - "optional" => return None, _ => return Some(Err(("Expected \"important\".", span).into())), } }