Don't add variables to scope twice

Since the Variable.parse method already adds to current scope,
p_variable_decl doesn't need to do that again.
This commit is contained in:
Sascha Peilicke
2013-10-31 10:47:47 +01:00
parent 45b4f88e23
commit c194aaa8b2

View File

@@ -380,7 +380,6 @@ class LessParser(object):
"""
p[0] = Variable(list(p)[1:-1], p.lineno(4))
p[0].parse(self.scope)
self.scope.add_variable(p[0])
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~