yui / yuicompressor

YUI Compressor
http://yui.github.com/yuicompressor/
Other
3.01k stars 662 forks source link

confusing closing comments with opening comments #313

Open garretwilson opened 6 years ago

garretwilson commented 6 years ago

If the source file contains this:

/*!
 * …
 */*,*::before,*::after{box-sizing:border-box} …

YUI Compressor gets confused and thinks the /* is the start of a new comment, rather than the end of an existing comment, completely breaking the contents of the file, either by dropping the contents or including them as a comment (depending on the specific context).