tonyganch / gonzales-pe

CSS parser with support of preprocessors
MIT License
330 stars 67 forks source link

throw new ParsingError(e, css) #297

Closed weilinzung closed 5 years ago

weilinzung commented 5 years ago

An example that if I have *display: inline; that with an asterisk symbol. Then it would cause errors:

/project/node_modules/gonzales-pe/lib/gonzales.js:816
        throw new ParsingError(e, css);
        ^
Parsing error: Please check validity of the block starting from line #31

That CSS framework is from a very old version of: https://github.com/csswizardry/inuit.css/blob/master/objects/_nav.scss

jdalton commented 5 years ago

Hi @weilinzung!

gonzales-pe doesn't support CSS hacks at the moment. See #29. Feel free to revive the PR effort of #286 if you're up for adding support though 😅

weilinzung commented 5 years ago

@jdalton

does this library has an ingore option then?

jdalton commented 5 years ago

@weilinzung I don't believe there's an ignore for this kind of error.