summaryrefslogtreecommitdiff
path: root/scss/grammar
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2014-09-05 13:57:19 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2014-09-05 13:57:19 -0700
commit9b1ec745356183305f8e2385b78b77b959885867 (patch)
tree8ae742883507629f991e715bcadd87b906780e6e /scss/grammar
parentcd1559ebdf6834d5a356494413d2ff4d9a63385c (diff)
downloadpyscss-9b1ec745356183305f8e2385b78b77b959885867.tar.gz
Don't quote the contents of the IE alpha() function.
Diffstat (limited to 'scss/grammar')
-rw-r--r--scss/grammar/expression.g3
-rw-r--r--scss/grammar/expression.py2
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')