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

(py-compute-indentation): When looking at a continuation line inside

an open paren, do a better job of reindenting the line.  For example:

def foo():
    print 'hello %s, %d' % (
    a, b)

Hit TAB on the line starting with `a'.  Without this patch this line
will never be reindented.
üst 585f733b
......@@ -1529,7 +1529,12 @@ the new line indented."
(while (and (< (point) startpos)
(looking-at "[ \t]*[#\n\\\\]")) ; skip noise
(forward-line 1))
(if (< (point) startpos)
(if (and (< (point) startpos)
(/= startpos
(save-excursion
(goto-char (1+ open-bracket-pos))
(skip-chars-forward " \t\n")
(point))))
;; again mimic the first list item
(current-indentation)
;; else they're about to enter the first item
......
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