csscomb / sublime-csscomb

Sublime plugin for CSScomb—CSS coding style formatter
398 stars 61 forks source link

Throws exception if extended class contains "-" in its name (SCSS) #36

Open sh-a-a opened 10 years ago

sh-a-a commented 10 years ago
.paper
{
    @extend .row;
    @extend .small-12;
    position: relative;
   //...
}

will cause:

core.js:412
            throw e;
                  ^

Please check the validity of the block starting from line #848
846 | {
847 |     @extend .row;
848*|     @extend .small-12;
rjbultitude commented 9 years ago

I have a similar issue (see error below) but it seems skip a placeholder selector called %module-border-bottom, which is a 30 lines above the one it fails on

/Users/RichB/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/node_modules/csscomb-core/lib/core.js:412 throw e; ^

Please check the validity of the block starting from line #95

93 | } 94 | .module-border-bottom { 95*| @extend %module-border-bottom-variant-1; 96 | } 97 | }

Gonzales PE version: 3.0.0-10 CSScomb Core version: 2.0.2

marcio commented 9 years ago

+1

piton13 commented 9 years ago

+1

AaronAmstutz commented 8 years ago

Any movement on this? This pretty much makes CSSComb worthless for combing SASS.