danro/LESS-sublime

Syntax highlighting breaks when using Maps lookup syntax

zvuc opened this issue · 1 comments

zvuc commented
#ui-colors() {
  .dark() {
    // UI shades
    background-095: @gray-d7;
    background-090: @gray-d6;
  }
}

.foo {
  color: @gray;
  background-color: rgba(#ui-colors.dark[background-090],0.7);
  border-radius: 200px;
  border: 2px solid transparent;
}

image

The background-color: rgba(#ui-colors.dark[background-090],0.7); part here is valid LESS code (using Maps syntax as of 3.5.0 http://lesscss.org/features/#maps-feature ) but highlighting seems to break as soon as I lookup nested mixins (#ui-colors.dark)

Good catch! Most of the maps feature is already well supported, but this use case wasn't handled well.