remove !optional hack
This commit is contained in:
parent
641ff007fb
commit
3cde25959b
@ -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())),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user