Skip to content

Commit

Permalink
Reverts 94efd30; fixes #323
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Sep 7, 2015
1 parent 73c403d commit 08a730c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ protected function matchExtendsSingle($rawSingle, &$outOrigin)
$single = array();

foreach ($rawSingle as $part) {
// matches Number
if (! is_string($part)) {
return false;
}

if (! preg_match('/^[\[.:#%]/', $part) && count($single)) {
$single[count($single) - 1] .= $part;
} else {
Expand Down
17 changes: 17 additions & 0 deletions tests/inputs/directives.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,20 @@ div {
{
body { color: purple; background: yellow; }
}

@keyframes anim-rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}

.bold {
font-weight: 700;
}

.icon-ajax {
@extend .bold;
}
10 changes: 10 additions & 0 deletions tests/outputs/directives.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@ div {
body {
color: purple;
background: yellow; } }

@keyframes anim-rotate {
0% {
transform: rotate(0); }

100% {
transform: rotate(360deg); } }

.bold, .icon-ajax {
font-weight: 700; }
12 changes: 12 additions & 0 deletions tests/outputs_numbered/directives.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,15 @@ to {
body {
color: purple;
background: yellow; } }

@keyframes anim-rotate {
/* line 113, inputs/directives.scss */
0% {
transform: rotate(0); }
/* line 116, inputs/directives.scss */
100% {
transform: rotate(360deg); } }
/* line 121, inputs/directives.scss */
.bold, .icon-ajax {
font-weight: 700; }
/* line 125, inputs/directives.scss */

0 comments on commit 08a730c

Please sign in to comment.