Fixed indentation inside parens when comments are around

This commit is contained in:
Fabián Ezequiel Gallina 2012-05-17 00:02:54 -03:00 committed by Fabián Ezequiel Gallina
parent bbac1eb8ab
commit 13d1a42edb

View file

@ -568,7 +568,12 @@ START is the buffer position where the sexp starts."
(save-excursion
(goto-char context-start)
(forward-char)
(if (looking-at "[[:space:]]*$")
(save-restriction
(narrow-to-region
(line-beginning-position)
(line-end-position))
(forward-comment 1))
(if (looking-at "$")
(+ (current-indentation) python-indent-offset)
(forward-comment 1)
(current-column)))