leafo/scssphp — pull request #9 by clue (2012-10-22 22:25:25+00:00)
Title: Actually parse media query lists

While scssphp is able to parse simple media queries, it should also be able to parse [CSS3 Media Queries](http://www.w3.org/TR/css3-mediaqueries/#syntax), specifically media query lists, i.e. comma-separated (OR'ed) media queries.

Currently, parsing simple (and possibly nested) CSS2.1 media queries works just as expected. However, it fails to natively parse even simple CSS3 query lists such as @media screen, print{…}. Well, it may look like it actually parsed it, but instead of generating a native media query list block element, it actually falls back to parsing into a generic "directive" block element. This in turn does not allow to apply proper formatting to the block or obey its nesting logic.

This pull request contains a minimal patch to provide at least basic support for media query lists, by parsing all media queries into native media query lists.

As always, any feedback is welcome!