Skip to content

Less: single quotes in comments lead to broken output #7780

@thorn0

Description

@thorn0

Prettier next
Playground link

--parser less

Input:

// TODO: '
// '
.qux1 {
    a {
        color: #555;
        border-right: 1px solid transparent;/*   */
        &.close {
            margin: 0;
        }
    }
}

.qux2 {
  width: 100%;
  height: 180px;
}

.qux3 {
	margin-right: 10px; 
}
 

Output:

// TODO: '
 // '

.qux1 {
  a {
    color: #555;
    border-right: 1px solid transparent; id tran
    &.close {
      margin: 0;
    }
  }
}
.qux2 {
  width: 100%;
  height: 180px;
}
.qux3 {
  margin-right: 10px;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:css/scss/lessIssues affecting CSS, Less or SCSSlang:lessIssues affecting Less-specific syntax (not plain CSS)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions