1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
Commit graph

2 commits

Author SHA1 Message Date
Nathan Weizenbaum
65a32689af [Sass] Change the CSS parser structure to avoid use of throw/catch and blocks.
The parser still doesn't do any more than validate,
and looks a lot less like the grammar,
but it should be dramatically more efficient now.
Not just because we're avoiding some expensive Ruby features,
but because now we aren't doing any more than a single token's worth
of backtracking.
2009-12-20 06:02:23 -08:00
Nathan Weizenbaum
f07c8755d1 [Sass] Add a validating parser for CSS.
This is a long way from actually parsing anything;
it just raises an exception if the document is invalid.
Nor is it likely to be particularly efficient,
due to heavy use of blocks and throw/catch.
2009-12-20 05:48:48 -08:00