Skip to content

Commit

Permalink
fix issue 59
Browse files Browse the repository at this point in the history
  • Loading branch information
goncaloe committed Feb 22, 2011
1 parent 9dfab78 commit be5c769
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 3 additions & 8 deletions sass/script/SassScriptFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,9 @@ public static function extractArgs($string) {
break;
case '"':
case "'":
$arg .= $c;
//while (($_c = $string[$strpos++]) !== $c) { $arg .= $_c; }

do {
$_c = $string[$strpos++];
$arg .= $_c;
} while ($_c !== $c);

while (($_c = $string[$strpos++]) !== $c) {
$arg .= $_c;
}
break;
case ',':
if ($paren) {
Expand Down
8 changes: 8 additions & 0 deletions tests/test1.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ function p(){
border-color: $blue;
}
@mixin test($test_arg) {
#{$test_arg} {
width: 900px;
}
}
@include test("body");
';

$sass = new SassParser(array(
Expand Down

0 comments on commit be5c769

Please sign in to comment.