Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04cba5b commit 1b761a6Copy full SHA for 1b761a6
1 file changed
Misc/python-mode-old.el
@@ -596,6 +596,13 @@ the new line indented."
596
;; happens to be a continuation line too
597
(re-search-backward "^[ \t]*\\([^ \t\n#]\\|#[ \t\n]\\)"
598
nil 'move)
599
+ ;; if we landed inside a string, go to the beginning of that string
600
+ (let ((state (parse-partial-sexp
601
+ (save-excursion (beginning-of-python-def-or-class)
602
+ (point))
603
+ (point))))
604
+ (if (nth 3 state)
605
+ (goto-char (nth 2 state))))
606
(py-goto-initial-line)
607
(if (py-statement-opens-block-p)
608
(+ (current-indentation) py-indent-offset)
0 commit comments