1. Victor Kotseruba
  2. python-sass

Commits

Victor Kotseruba  committed a36f7be

!important is not a variable

  • Participants
  • Parent commits 7d23e82
  • Branches default

Comments (0)

Files changed (1)

File sass/parser.py

View file
  • Ignore whitespace
 
 
 _num_r = functools.partial(re.compile(r'(\d+(?:\.\d+)?)(px|em|pt)').sub, r"Number(\1, '\2')")
-_var_r = functools.partial(re.compile(r'!(?=\w+)').sub, '')
+_var_r = functools.partial(re.compile(r'!(?!important)(?=[a-zA-Z])').sub, '')
 
 
 Load = ast.Load