diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-09-05 13:57:19 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-09-05 13:57:19 -0700 |
commit | 9b1ec745356183305f8e2385b78b77b959885867 (patch) | |
tree | 8ae742883507629f991e715bcadd87b906780e6e /scss/grammar | |
parent | cd1559ebdf6834d5a356494413d2ff4d9a63385c (diff) | |
download | pyscss-9b1ec745356183305f8e2385b78b77b959885867.tar.gz |
Don't quote the contents of the IE alpha() function.
Diffstat (limited to 'scss/grammar')
-rw-r--r-- | scss/grammar/expression.g | 3 | ||||
-rw-r--r-- | scss/grammar/expression.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scss/grammar/expression.g b/scss/grammar/expression.g index 772f3cd..6a708e3 100644 --- a/scss/grammar/expression.g +++ b/scss/grammar/expression.g @@ -239,7 +239,8 @@ parser SassExpression: # filter syntax, where it appears as alpha(opacity=NN). Since = isn't # normally valid Sass, we have to special-case it here | ALPHA_FUNCTION LPAR ( - "opacity" "=" NUM RPAR {{ return Literal(Function("opacity=" + NUM, "alpha")) }} + "opacity" "=" NUM RPAR + {{ return FunctionLiteral(Literal(String.unquoted("opacity=" + NUM)), "alpha") }} | argspec RPAR {{ return CallOp("alpha", argspec) }} ) | LITERAL_FUNCTION LPAR interpolated_function RPAR diff --git a/scss/grammar/expression.py b/scss/grammar/expression.py index 8a718c5..282047e 100644 --- a/scss/grammar/expression.py +++ b/scss/grammar/expression.py @@ -336,7 +336,7 @@ class SassExpression(Parser): self._scan('"="') NUM = self._scan('NUM') RPAR = self._scan('RPAR') - return Literal(Function("opacity=" + NUM, "alpha")) + return FunctionLiteral(Literal(String.unquoted("opacity=" + NUM)), "alpha") else: # in self.atom_chks argspec = self.argspec() RPAR = self._scan('RPAR') |