aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Monnier2021-09-21 11:39:24 -0400
committerStefan Monnier2021-09-21 11:39:24 -0400
commit3bc7234349185da21828e5a2a1e31a16dcf93ba8 (patch)
tree3034849e5fe220d21ee51860e6819f57ebfe57cf /lisp/progmodes/python.el
parent2151f5763dd5da431f429d7f2c8462ad85ecb9d5 (diff)
downloademacs-3bc7234349185da21828e5a2a1e31a16dcf93ba8.tar.gz
emacs-3bc7234349185da21828e5a2a1e31a16dcf93ba8.zip
* python.el (python-syntax-stringify): Extend comment about last change
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