csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 457 forks source link

Unspecified error in mixn processing #490

Closed Melmoth-the-Wanderer closed 5 years ago

Melmoth-the-Wanderer commented 7 years ago

Hello.

I'm using CSSComb for VSCode. I've posted this issue out there and have been redirected here with comment it's CSSComb bug with parsing. The problem is as folows:

I have the following mixins.scss file defined:

@mixin floating-element() {
    border: 1px solid #d4d4d4;
    box-shadow: 0 0 20px -10px #000000;
}

@mixin get-subtable-colour($number) {
    $index: ($number % length($random-colours)) + 1;
    border-left: 2px solid unquote(nth($random-colours, $index));
}

when I run the CSSComb command on this particular file I'm getting the following error in VSCode console:

Parsing error: Please check the validity of the block starting from line #13

Gonzales PE version: 3.0.0-28
Syntax: scss

Please note, the file is 9 lines long, and the error message says starting from line #13.

Regards, MP

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

jdalton commented 5 years ago

Hi @Melmoth-the-Wanderer!

This seems to be fixed in gonzales-pe now 🎉