#6912: add "with" block support to pindent.

This commit is contained in:
Georg Brandl 2009-09-17 07:49:37 +00:00
parent 6fedc5252d
commit af09b60aac
1 changed files with 2 additions and 2 deletions

View File

@ -88,10 +88,10 @@ next = {}
next['if'] = next['elif'] = 'elif', 'else', 'end'
next['while'] = next['for'] = 'else', 'end'
next['try'] = 'except', 'finally'
next['except'] = 'except', 'else', 'end'
next['except'] = 'except', 'else', 'finally', 'end'
next['else'] = next['finally'] = next['def'] = next['class'] = 'end'
next['end'] = ()
start = 'if', 'while', 'for', 'try', 'def', 'class'
start = 'if', 'while', 'for', 'try', 'with', 'def', 'class'
class PythonIndenter: