mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-19 19:37:58 +00:00
Fixed indentation inside parens when comments are around
This commit is contained in:
parent
bbac1eb8ab
commit
13d1a42edb
1 changed files with 6 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue