summaryrefslogtreecommitdiff
path: root/scss/cssdefs.py
diff options
context:
space:
mode:
authorEevee <eevee.git@veekun.com>2013-05-08 18:42:18 -0700
committerEevee <eevee.git@veekun.com>2013-05-23 13:43:24 -0700
commit86ae23509aa0ea0dfdf9f13d1f17f0ecf7b0cd8e (patch)
tree84ced1267a30c0d932435337beae8f642253aa47 /scss/cssdefs.py
parent3d464c0159960913ee3610f882acd129d3bc361b (diff)
downloadpyscss-86ae23509aa0ea0dfdf9f13d1f17f0ecf7b0cd8e.tar.gz
Remove _skip_word_re.
This was an optimization to short-circuit evaluating any expressions that don't appear to contain Sass syntax, but it was wrong: the particular case I ran across was `foo, bar` not being parsed as a list! Removing it added only 3% to the test suite runtime. We can see about resurrecting the idea later, after the suite actually passes. :)
Diffstat (limited to 'scss/cssdefs.py')
-rw-r--r--scss/cssdefs.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/scss/cssdefs.py b/scss/cssdefs.py
index 169229b..41e4c2b 100644
--- a/scss/cssdefs.py
+++ b/scss/cssdefs.py
@@ -277,7 +277,6 @@ _strings_re = re.compile(r'([\'"]).*?\1')
_has_placeholder_re = re.compile(r'(?<!\w)([a-z]\w*)?%')
_prop_split_re = re.compile(r'[:=]')
-_skip_word_re = re.compile(r'-?[_\w\s#.,:%]*$|[-_\w#.,:%]*$', re.MULTILINE)
_has_code_re = re.compile('''
(?:^|(?<=[{;}])) # the character just before it should be a '{', a ';' or a '}'
\s* # ...followed by any number of spaces