yostudios/Spritemapper — pull request #25 by mccutchen (2012-06-06 17:30:51+00:00)
Title: Last declaration in a block does not require a semicolon

Hi,

I've just started using Spritemapper as a part of my assset-building pipeline, and I've run into an issue with its CSS parsing. It raises a `RuntimeError` when the last declaration in a block is not terminated by a semicolon, but I don't believe that should be an error [according to the spec][1].

I ran into this because my current pipeline goes

```
Sass compiler => YUI Compressor => Spritemapper
```

and the YUI Compressor always removes the semicolon following the last declaration in a block. I can probably update my pipeline, but I figured I'd submit this minor pull request in the meantime. It's minor mostly because the code was already in place to properly handle this case but was hidden behind the `raise RuntimeError...` exception.

There must be some reason that exception was put in place, though, so I'm sorry if I'm wasting your time.

Thanks for a great project!

[1]: http://www.w3.org/TR/CSS21/syndata.html#declaration