Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom properties, take 2 #7555

Merged
merged 10 commits into from Sep 17, 2015

Allow whitespace-only custom property values.

  • Loading branch information
SimonSapin committed Sep 17, 2015
commit ab9e1af20650509382ea21527909ee3086d78031
@@ -48,10 +48,13 @@ pub fn parse(input: &mut Parser) -> Result<Value, ()> {
pub fn parse_declaration_value(input: &mut Parser, references: &mut Option<HashSet<Name>>)
-> Result<(), ()> {
input.parse_until_before(Delimiter::Bang | Delimiter::Semicolon, |input| {
if input.is_exhausted() {
// Need at least one token
// Need at least one token
let start_position = input.position();
if input.next_including_whitespace().is_err() {
return Err(())
}
input.reset(start_position);

parse_declaration_value_block(input, references)
})
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.