--- python.el 2011/02/28 20:22:31 1.1 +++ python.el 2011/02/28 20:24:23 @@ -2022,7 +2022,9 @@ ;; current line. ((eq t (nth 3 syntax)) ; in fenced string (goto-char (nth 8 syntax)) ; string start - (setq start (line-beginning-position)) + (if (looking-at "\\(?:'''\\|\"\"\"\\|'\\|\"\\)\\\\?\n?") + (setq start (match-end 0)) + (setq start (line-beginning-position))) (setq end (condition-case () ; for unbalanced quotes (progn (forward-sexp) (- (point) 3))