TheRealSyler / sass-formatter

Sass(indented syntax) formatter written in typescript
https://sass-formatter.syler.de
MIT License
10 stars 2 forks source link

Wrong indent when using attribute selector #50

Closed benben994 closed 3 years ago

benben994 commented 3 years ago

Describe the bug Indent seems not correct when using attribute selector.

To Reproduce Input

::v-deep .el-menu-item
  i[class^="el-icon"]
    font-size: 20px
    color: $--color-text-primary
    margin-right: 8px

Output

::v-deep .el-menu-item
  i[class^="el-icon"]
  font-size: 20px
  color: $--color-text-primary
  margin-right: 8px

Expected behavior

::v-deep .el-menu-item
  i[class^="el-icon"]
    font-size: 20px
    color: $--color-text-primary
    margin-right: 8px

Additional context It seems working if I take the "^" away.

TheRealSyler commented 3 years ago

i will take a look at it, i think i already know whats happening.