aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 7818ab1ab05..c58ac6f637d 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -777,6 +777,13 @@ is used to limit the scan."
777 ((null string-start) 777 ((null string-start)
778 ;; This set of quotes delimit the start of a string. Put 778 ;; This set of quotes delimit the start of a string. Put
779 ;; string fence syntax on last quote. (bug#49518) 779 ;; string fence syntax on last quote. (bug#49518)
780 ;; FIXME: This makes sexp-movement a bit suboptimal since """a"""
781 ;; is now treated as 3 strings.
782 ;; We could probably have our cake and eat it too by
783 ;; putting the string fence on the first quote and then
784 ;; convincing `syntax-ppss-flush-cache' to flush to before
785 ;; that fence when any char of the 3-char delimiter
786 ;; is modified.
780 (put-text-property (1- quote-ending-pos) quote-ending-pos 787 (put-text-property (1- quote-ending-pos) quote-ending-pos
781 'syntax-table (string-to-syntax "|"))) 788 'syntax-table (string-to-syntax "|")))
782 (t 789 (t