Fix mixin calls being recognised as mixin definitions when arguments contain spaces and interpolated strings. Fixes #901

This commit is contained in:
Luke Page
2012-08-16 20:24:55 +01:00
parent 2d8ede3436
commit 8de8492d35
3 changed files with 20 additions and 2 deletions

View File

@@ -102,3 +102,7 @@ legend + h3 {
h3 + * {
margin-top: 5px;
}
.error {
background-image: "/a.png";
background-position: center center;
}

View File

@@ -81,4 +81,13 @@
}
h1 { .margin_between(25px, 10px); }
h2 { .margin_between(20px, 8px); }
h3 { .margin_between(15px, 5px); }
h3 { .margin_between(15px, 5px); }
.mixin_def(@url, @position){
background-image: @url;
background-position: @position;
}
.error{
@s: "/";
.mixin_def( "@{s}a.png", center center);
}