ThisIsManta / stylus-supremacy

A Node.js script that helps formatting Stylus files.
https://thisismanta.github.io/stylus-supremacy
MIT License
88 stars 9 forks source link

issue with comma being inserted after parens #52

Closed dperrymorrow closed 4 years ago

dperrymorrow commented 5 years ago

Hi great project, enjoying using thus far. However I am Having an issue with stylus supremacy that Im trying to sort out.

td
  padding: ($data.form-padding / 2) $data.form-padding

After formatting, a comma has been inserted

td
  padding: ($data.form-padding / 2), $data.form-padding

which compiles to invalid CSS

td {
    padding: 7px,14px
}

any help would be much appreciated, It seems to have to do with the parens / calculation

dperrymorrow commented 5 years ago

further clarification, this does not occur when using the command line, but does in both Atom 0.70 and VsCode 2.12.7

ThisIsManta commented 5 years ago

Hello, thank you for reporting the issue. I'll have a look this weekend. I've been very busy at work :p

dperrymorrow commented 5 years ago

Thanks for your quick reply. I have added a failing test here if that helps https://github.com/dperrymorrow/stylus-supremacy/commit/959b9f5e684e172edb823a041400261e24d30df5

ThisIsManta commented 4 years ago

This will be fixed in v2.14.2 or newer.