Kaydet (Commit) a8f99ba2 authored tarafından Barry Warsaw's avatar Barry Warsaw

(py-statement-closes-block-p): Add a py-goto-initial-line which fixes

indentation when the return value is a multiline sexp:

def bug():
    try:
        if 2>1:
            return (11+
                    12)

        else:   #XXX
            return 12
    except:
        return 13
üst c7ba0800
......@@ -2923,6 +2923,7 @@ I.e., if the line starts with `return', `raise', `break', `continue',
and `pass'. This doesn't catch embedded statements."
(let ((here (point)))
(back-to-indentation)
(py-goto-initial-line)
(prog1
(looking-at (concat py-block-closing-keywords-re "\\>"))
(goto-char here))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment