diff --git a/mode/python.py b/mode/python.py index 3b821c2..097051c 100644 --- a/mode/python.py +++ b/mode/python.py @@ -81,7 +81,7 @@ class PythonTabber(tab.StackTabber): # NOTE: yield might initially seem like an endlevel name, but it's not one. # NOTE: return should be an endlevel name but for now it can't be one. endlevel_names = ('pass', 'raise', 'break', 'continue') - startlevel_names = ('if', 'try', 'class', 'def', 'for', 'while', 'try') + startlevel_names = ('if', 'try', 'class', 'def', 'for', 'while', 'try', 'with') def __init__(self, m): tab.StackTabber.__init__(self, m) self.base_level = 0