]> git.eshelyaron.com Git - emacs.git/commitdiff
* python.el (python-syntax-stringify): Extend comment about last change
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Sep 2021 15:39:24 +0000 (11:39 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 21 Sep 2021 15:39:24 +0000 (11:39 -0400)
lisp/progmodes/python.el

index 7818ab1ab05a0ac2390986cc2f1c183a29664671..c58ac6f637d29e2d256c74e13bc286c7736dc68d 100644 (file)
@@ -777,6 +777,13 @@ is used to limit the scan."
           ((null string-start)
            ;; This set of quotes delimit the start of a string.  Put
            ;; string fence syntax on last quote. (bug#49518)
+           ;; FIXME: This makes sexp-movement a bit suboptimal since """a"""
+           ;; is now treated as 3 strings.
+           ;; We could probably have our cake and eat it too by
+           ;; putting the string fence on the first quote and then
+           ;; convincing `syntax-ppss-flush-cache' to flush to before
+           ;; that fence when any char of the 3-char delimiter
+           ;; is modified.
            (put-text-property (1- quote-ending-pos) quote-ending-pos
                               'syntax-table (string-to-syntax "|")))
           (t