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:
@@ -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])
|
||||
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user