Commit 9787f829 authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina Committed by Fabián Ezequiel Gallina

Indentation enhancements on after-backslash

Multiline sentences beginning with "import", "from" or "return" are
indented correctly now.
parent f8994527
......@@ -681,14 +681,15 @@ START is the buffer position where the sexp starts."
(current-column))
(t
(goto-char context-start)
(if (not (member
(save-excursion
(back-to-indentation)
(message (current-word)))
'("return" "import" "from")))
(if (not
(save-excursion
(back-to-indentation)
(looking-at
"\\(?:return\\|from\\|import\\)\s+")))
(current-indentation)
(+ (current-indentation)
python-indent-offset))))))
(length
(match-string-no-properties 0))))))))
indentation))
('inside-paren
(or (save-excursion
......
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