Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting breaks certain kinds of interpolation #76

Open
jakewski opened this issue Oct 23, 2020 · 1 comment
Open

Formatting breaks certain kinds of interpolation #76

jakewski opened this issue Oct 23, 2020 · 1 comment
Labels

Comments

@jakewski
Copy link

Hello, love stylus-supremacy and really grateful for this project.

I found some weird interpolation issues when trying to add this as an autofixer for a large codebase.

  1. Perenthesis + %
$padding = 12

.class1
  padding ($padding)%

gets formatted to:

$padding = 12;

.class1 {
  padding: $padding %;
}

which doesn't compile.

  1. Interpolated mixin
text-blue()
  color blue
  
.class1
  text-{'blue'}()
  transform ($padding)ms

turns into

text-blue()
  color blue

.class1
  text-{'blue'}
  transform $padding ms

and if you run it again, it turns into:

text-blue()
  color blue

.class1
  text-

  transform $padding ms

Thanks in advance for your time. Again, love this project

@Shyam-Chen
Copy link

#45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants