sasstools / scss-tokenizer

A tokenzier for Sass' SCSS syntax
MIT License
24 stars 22 forks source link

Implement proper comment tokenzing #5

Closed xzyfer closed 7 years ago

xzyfer commented 7 years ago

CSS style comments (/* */) are allow interpolants (#{$foo}), and disallow everything else. In order to dodge a bunch of edge cases I've implemented a sub-tokenizer for comments that makes all non-interpolant or whitespace tokens as word tokens.