less / more

less on rails — the official LESS plugin for Ruby on Rails
http://lesscss.org
MIT License
226 stars 41 forks source link

parent (&) selector broken #35

Open glennfu opened 13 years ago

glennfu commented 13 years ago

Using this:

    a {
      color: #038EA1;
      text-decoration: none;
      &:hover { text-decoration: underline; }
    }

Gives the error:

    expected one of @import * - @ :: : . # [ @media @font-face /* // } got & after:

Reading this post: https://less.tenderapp.com/discussions/questions/39-does-less-have-a-parent-selector-ala-sasss-operator

suggests that it works properly in the JS version, but has never worked in the ruby gem.

heygambo commented 13 years ago

It took me 1h to figure out that more doesn't support the & selector. Would be nice to have a notice in README.markdown.