vtst / ow

Various Eclipse plugins for web development
http://www.normalesup.org/~simonet/soft/
74 stars 29 forks source link

LESS: nested &.~className tilde general sibling combinator not recognized #166

Closed LindsayWard-xx closed 11 years ago

LindsayWard-xx commented 11 years ago

Example:

.classOne  {
  margin: 0;
  &:hover {
    background-color: @color1;
    &~.classTwo {
      display: block;
    }
  }
}

The "~" above is marked as not recognized even though this less file will compile to the correct css.

This equivalent (in compiled css) but less elegant version does not complain:

.classOne  {
  margin: 0;
  &:hover {
     background-color: @color1;
   }
   &:hover ~ .classTwo {
      display: block;
   }
}
vtst commented 11 years ago

Thanks for the bug report. This seems to be the same issue as #151. I just checked your example with the current code base, and it seems to be fine. So everything should be fine for you as soon as version 1.0.18 is released.

LindsayWard-xx commented 11 years ago

Thank you!!