less/less.ruby

nested pseudo selectors

manuelstofer opened this issue · 1 comments

It would be nice to write psudo selectors in nested syntax:

a {
     color: red;
     :hover {
         color: blue;
     }
 }

Compiles currently to:

a {
  color: red;
}
a :hover {
  color: blue;
}

To support nested pseudo selector syntax the space before ':' should be removed:

a {
  color: red;
}
a:hover {
  color: blue;
}

What about the following? This is already implemented.

a {
  &:hover {
    color: blue;
  }
}