From ccf44ed36d8409fb558e7fe1257378ef1a0953b4 2017-02-09 17:03:08 From: Thomas Kluyver Date: 2017-02-09 17:03:08 Subject: [PATCH] Add comment --- diff --git a/IPython/core/inputsplitter.py b/IPython/core/inputsplitter.py index 8378056..250d70a 100644 --- a/IPython/core/inputsplitter.py +++ b/IPython/core/inputsplitter.py @@ -167,6 +167,7 @@ def find_next_indent(code): last_indent = prev_indents.pop() + # If we've just opened a multiline statement (e.g. 'a = ['), indent more if tokens[-1].type == IN_MULTILINE_STATEMENT: if tokens[-2].exact_type in {tokenize.LPAR, tokenize.LSQB, tokenize.LBRACE}: return last_indent + 4