SublimeText / Sass

Sass and SCSS syntax for Sublime Text
https://packagecontrol.io/packages/Sass
MIT License
51 stars 8 forks source link

Last item in a list named as a CSS property #42

Closed sandrojohanides closed 5 years ago

sandrojohanides commented 5 years ago

Seems to happen in a comma separated list when a string is named as a CSS property (bottom, color...). In a space separated list, all of the property-like strings are incorrectly highlighted. Doesn’t work for all properties, see position.

screen shot 2018-11-26 at 13 06 35 screen shot 2018-11-26 at 12 48 35

@if index((top, bottom), $dir) {
    $offset-dir: if($offset-dir == right, right, left);
} @else if index((left, right), $dir) {
    $offset-dir: if($offset-dir == bottom, bottom, top);
}