Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

Support Loud Comments #202

Open ghost opened 11 years ago

ghost commented 11 years ago

Currently I believe all the comments are stripped, as seen in

https://github.com/Kronuz/pyScss/blob/master/scss/__init__.py#L274

Here are the re's that do that.

https://github.com/Kronuz/pyScss/blob/master/scss/cssdefs.py#L351

I sorta need loud comments[1] atleast, so here's what I did,

_ml_comment_re = re.compile(r'\/\*[^!](.*?)\*\/', re.DOTALL)
# are \/ necessary ?

[1] http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#comments

rj919 commented 7 years ago

Is this a change still being considered? https://github.com/Kronuz/pyScss/blob/master/scss/cssdefs.py#L482 Would there be any unexpected side-effects?