Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

Trailing commas in map and list literals #210

Open eevee opened 11 years ago

eevee commented 11 years ago

This is being discussed on the Ruby tracker and I think we should totally do it. Allow them in lists and maps, and allow a single comma to make a one-element list. See also: nex3/sass#917

$list-of-three-items: (
    1,
    2,
    3,
);

$one-by-three-list: (1 2 3),;

$map: (
    key: value,
);