Commits

Victor Kotseruba  committed a36f7be

!important is not a variable

  • Participants
  • Parent commits 7d23e82

Comments (0)

Files changed (1)

File sass/parser.py

 
 
 _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