Skip to content

SASS inline comments break sort ordering (and thus the SASS itself) #535

@itsdevdom

Description

@itsdevdom

When using SASS comments inline, for instance next to a declaration, the whole formatting breaks apart.

Example:

.input {
  font-family: inherit; // My awesome comment
  line-height: 20px;
}

The code above gets transformed into:

.input {
  font-family: inherit; // My awesome comment  line-height: 20px;
}

Sometimes, it even destroys the new line formatting, for example:

.input {
  font-family: inherit; // My awesome comment
  line-height: 20px; // My other comment
}

The code above gets transformed into:

.input { font-family: inherit; // My awesome comment
  line-height: 20px; // My other comment
}

Seems that CSS-style comments (/* ... */ instead of // ...) work fine though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions