shawnbot / sast

Parse CSS, Sass, SCSS, and Less into a unist syntax tree
The Unlicense
49 stars 5 forks source link

Fail on legitimate map #14

Open ocoka opened 4 years ago

ocoka commented 4 years ago

input was

$settings_icons : (
    user: url('assets/svg/user.svg'),
    check: url('assets/svg/check.svg'),
    );
ocoka commented 4 years ago

Hmm, I've just check it on text in issue again, and now it works ! Maybe while copying some was stripped...

ocoka commented 4 years ago

Aha, find it, I've edited the desription, the issue in last colon, without it all good, but it libsass parse it without clause...

ocoka commented 4 years ago

And in that case parser goes to infinity loop

$settings_icons : (
    user: url('assets/svg/user.svg'),
    check: url('assets/svg/check.svg'),
    //some: url('assets/1.jpg'));
shawnbot commented 4 years ago

Thanks for reporting this. I'll have to look at whether this is a problem with the underlying parser or this one.