futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
370 stars 22 forks source link

Fix whitespace parsing, with enhanced parser debugging #38

Closed WorldSEnder closed 2 years ago

WorldSEnder commented 2 years ago

While working on #36 I noticed a few things about the parser, that are part of this pr, since addressing them helped me understand the issue.

There is potential for a follow up that looks over all the parsers and tries to rewrite things so that Self::sp is not called twice at the same input position, but that is not necessarily a part of this, but let me know if I should do that @futursolo.