Skip to content

Commit cf49dc6

Browse files
committed
fixes leafo#144 and leafo#177
1 parent 66ff686 commit cf49dc6

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

scss.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2991,7 +2991,7 @@ protected function parseChunk() {
29912991

29922992
// doesn't match built in directive, do generic one
29932993
if ($this->literal('@', false) && $this->keyword($dirName) &&
2994-
($this->openString('{', $dirValue) || true) &&
2994+
($this->variable($dirValue) || $this->openString('{', $dirValue) || true) &&
29952995
$this->literal('{'))
29962996
{
29972997
$directive = $this->pushSpecialBlock('directive');

tests/inputs/mixins.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,16 @@ div {
156156
#please-wait {
157157
@include logo(1em, $left: 4em, $bottom: 3em);
158158
}
159+
160+
@mixin keyframes( $name )
161+
{
162+
@-webkit-keyframes $name {
163+
@content;
164+
}
165+
}
166+
167+
@include keyframes( change-color )
168+
{
169+
0% { color: green; }
170+
100% { color: red; }
171+
}

tests/outputs/mixins.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,10 @@ div.mixin-content-with-arg {
8181
right: 0;
8282
bottom: 3em;
8383
left: 4em; }
84+
85+
@-webkit-keyframes change-color {
86+
0% {
87+
color: green; }
88+
89+
100% {
90+
color: red; } }

0 commit comments

Comments
 (0)