parent
5c2e5af0f2
commit
c4ceafd22d
|
@ -114,10 +114,11 @@ class PerlTabber(tab2.StackTabber):
|
||||||
self._opt_pop('cont')
|
self._opt_pop('cont')
|
||||||
currlvl = tab2.StackTabber._handle_close_token(self, currlvl, y, i)
|
currlvl = tab2.StackTabber._handle_close_token(self, currlvl, y, i)
|
||||||
token = self.get_token(y, i)
|
token = self.get_token(y, i)
|
||||||
if token.string == '}':
|
if self.is_rightmost_token(y, i):
|
||||||
self._opt_pop('cont')
|
if token.string == '}':
|
||||||
elif self.is_rightmost_token(y, i):
|
self._opt_pop('cont')
|
||||||
self._opt_append('cont', currlvl + 4)
|
else:
|
||||||
|
self._opt_append('cont', currlvl + 4)
|
||||||
return currlvl
|
return currlvl
|
||||||
def _handle_other_token(self, currlvl, y, i):
|
def _handle_other_token(self, currlvl, y, i):
|
||||||
token = self.get_token(y, i)
|
token = self.get_token(y, i)
|
||||||
|
|
Loading…
Reference in New Issue