Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions spritecss/css/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,9 @@ def _handle_declaration(self, st):
elif lex == "comment_begin":
return st.sub(self._handle_comment)
elif lex == "block_end":
# this happens when the last declaration isn't terminated properly
# NOTE This is really invalid CSS, but we're nice people.
# This happens when the last declaration isn't terminated with a
# semicolon, which is valid (and often occurs during minimization)
if st.declaration:
raise RuntimeError("unconsumed declaration in %r, "
"missing semicolon?" % (st,))
self.push(Declaration(st))
self.push(BlockEnd(st))
return st(handler=None, declaration="", selector="")
Expand Down