mrmlnc / vscode-csscomb

:electric_plug: VS Code plugin for CSScomb — CSS coding style formatter.
https://goo.gl/lKARa5
MIT License
65 stars 11 forks source link

Mixins in LESS are not formatted correctly #105

Closed cnshenj closed 6 years ago

cnshenj commented 6 years ago

Environment

Actual behavior

.mixin {
    overflow-wrap: break-word;
}
.my-class {
    color: #fff;

.mixin();
}

Expected behavior

.mixin {
    overflow-wrap: break-word;
}
.my-class {
    color: #fff;

    .mixin();
}

Steps to reproduce

Run CSSComb: Format styles

Note: Mixins in LESS can be invoked without () too, e.g. .mixin;.

mrmlnc commented 6 years ago

Hello, @cnshenj,

This is a bug of CSSComb. We use latest version of CSSComb and it can be reproduced with CSSComb as CLI. You can create issue in the CSSComb repository and after bump CSSComb version I'll update my plugin 👍