less2sass icon indicating copy to clipboard operation
less2sass copied to clipboard

Mixins with semi colons not converted correctly

Open mohammed-alsiddeeq opened this issue 9 years ago • 3 comments

less code .border-radius(0; 0; @box-border-radius; @box-border-radius);

is converted to this scss code @include border-radius(0; 0; $box-border-radius; $box-border-radius);

semi colons causes errors in sass

mohammed-alsiddeeq avatar Sep 23 '16 16:09 mohammed-alsiddeeq

Pull requests are welcome! At least provide the correct syntax...

swrobel avatar Sep 23 '16 17:09 swrobel

Opened a SO thread about this but so far nothing seems to nail it: http://stackoverflow.com/q/39757272/337446

swrobel avatar Oct 08 '16 00:10 swrobel

After i second look, I think the question you posted in SO is a little misleading.

.mixin is NOT keyword in less the Wiktor Stribiżew answer is grabing the . selector from less and converting it to sass eg: if less mixin is

 .whatever()

It is going to be converted to

 #whatever 

which obviously not a sass keyword

mohammed-alsiddeeq avatar Oct 08 '16 17:10 mohammed-alsiddeeq