parent
1126b059b8
commit
22e873833f
|
@ -179,7 +179,7 @@ class PythonTabber(tab.StackTabber):
|
||||||
else:
|
else:
|
||||||
self._pop()
|
self._pop()
|
||||||
elif fqname == 'python_keyword':
|
elif fqname == 'python_keyword':
|
||||||
if token.string in self.endlevel_names:
|
if token.string in self.endlevel_names and self.is_leftmost_token(y, i):
|
||||||
# we know we'll unindent at least once
|
# we know we'll unindent at least once
|
||||||
self._pop()
|
self._pop()
|
||||||
self.popped = True
|
self.popped = True
|
||||||
|
|
Loading…
Reference in New Issue