diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-27 18:49:25 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-08-27 18:49:25 -0700 |
commit | 8b32fe7369ea287681292c0036b5458843b299c8 (patch) | |
tree | 9aa4b0e9c3ad9ac31425de48c34516723ee40ace /scss | |
parent | d7216c20dede113b4a76a97c9151c569f6be0c6e (diff) | |
download | pyscss-8b32fe7369ea287681292c0036b5458843b299c8.tar.gz |
Fix this ancient xCSS-style test, and add some warnings.
Diffstat (limited to 'scss')
-rw-r--r-- | scss/compiler.py | 8 | ||||
-rw-r--r-- | scss/tests/files/original-doctests/026-forum-2.scss | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/scss/compiler.py b/scss/compiler.py index ac89a58..e07b515 100644 --- a/scss/compiler.py +++ b/scss/compiler.py @@ -339,6 +339,9 @@ class Compilation(object): #################################################################### # At (@) blocks if block.is_atrule: + # TODO particularly wild idea: allow extensions to handle + # unrecognized blocks, and get the pyscss stuff out of the + # core? even move the core stuff into the core extension? code = block.directive code = '_at_' + code.lower().replace(' ', '_')[1:] try: @@ -1121,6 +1124,10 @@ class Compilation(object): """ Implements @variables and @vars """ + warn_deprecated( + rule, + "@variables and @vars are deprecated. " + "Just assign variables at top-level.") _rule = rule.copy() _rule.unparsed_contents = block.unparsed_contents _rule.namespace = rule.namespace @@ -1138,6 +1145,7 @@ class Compilation(object): prop, raw_value = (_prop_split_re.split(block.prop, 1) + [None])[:2] try: is_var = (block.prop[len(prop)] == '=') + warn_deprecated(rule, "Assignment with = is deprecated; use :.") except IndexError: is_var = False calculator = self._make_calculator(rule.namespace) diff --git a/scss/tests/files/original-doctests/026-forum-2.scss b/scss/tests/files/original-doctests/026-forum-2.scss index d2a5e18..e92df0a 100644 --- a/scss/tests/files/original-doctests/026-forum-2.scss +++ b/scss/tests/files/original-doctests/026-forum-2.scss @@ -1,7 +1,7 @@ @option style:legacy, short_colors:yes, reverse_colors:yes; @variables { - $ie6 = *html; - $ie7 = *:first-child+html; + $ie6 = unquote("*html"); + $ie7 = unquote("*:first-child+html"); } $ie6 { .a { color:#fff; } |