* lisp/progmodes/python.el (python-indent-calculate-indentation): When
determining indentation, don't treat "return", "pass", etc., as operators when they are just string constituents. * automated/python-test.el (python-indent-block-enders-1): Rename from python-indent-block-enders. (python-indent-block-enders-2): New test. Fixes: debbugs:15812
This commit is contained in:
parent
6cc4c89b6c
commit
f54de22e65
4 changed files with 35 additions and 2 deletions
|
@ -774,7 +774,7 @@ START is the buffer position where the sexp starts."
|
|||
(save-excursion
|
||||
(python-util-forward-comment -1)
|
||||
(python-nav-beginning-of-statement)
|
||||
(member (current-word) python-indent-block-enders)))
|
||||
(looking-at (regexp-opt python-indent-block-enders))))
|
||||
python-indent-offset
|
||||
0)))
|
||||
;; When inside of a string, do nothing. just use the current
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue