1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 03:20:39 -08:00
emacs/test/lisp/progmodes
João Távora 0646c68171 Make syntax-ppss more accurate for Python triple quotes (bug#49518)
By putting delimiter syntax on the last character of Python
triple-quoted strings, this makes syntax-ppss be more accurate.

Previously:

    emacs -Q something.py
    type two single quotes
    M-: (nth 3 (syntax-ppss))
    notice how the return value says you're outside a string, correctly
    type another quote
    M-: (nth 3 (syntax-ppss))
    notice how the return value says you're inside a string, correctly
    backspace the quote just entered
    M-: (nth 3 (syntax-ppss))
    notice how the return value says you're inside a string, incorrectly

With this patch the last step is corrected.  This helps things like
electric-pair-mode.  Also, the test
python-syntax-after-python-backspace now passes, again.

* lisp/progmodes/python.el (python-syntax-stringify): Put
delimiter syntax in "inner" of the surrouding triple quotes.

* test/lisp/progmodes/python-tests.el
(python-syntax-after-python-backspace): Passes again.
2021-09-21 10:56:27 +01:00
..
cperl-mode-resources cperl-mode.el: Allow non-ASCII Perl identifiers 2021-09-14 17:53:52 +02:00
flymake-resources Keep and report "foreign" diangnostics in flymake-cc Flymake backend 2021-09-14 12:22:15 +01:00
js-resources
ruby-mode-resources ruby-syntax-propertize: Fix certain cases following :: 2021-02-02 03:48:04 +02:00
xref-resources Speed up xref rendering for matches on very long lines 2021-03-08 04:25:15 +02:00
asm-mode-tests.el Fix fill-paragraph in asm-mode 2021-01-28 07:34:10 +01:00
autoconf-tests.el
bat-mode-tests.el
cc-mode-tests.el
compile-tests.el Off-by-one error in compilation rule end-column function (bug#49624) 2021-07-23 15:20:44 +02:00
cperl-mode-tests.el cperl-mode.el: Allow non-ASCII Perl identifiers 2021-09-14 17:53:52 +02:00
elisp-mode-tests.el Localize namespace-filtering code 2021-09-15 05:33:06 +03:00
etags-tests.el
executable-tests.el ; Remove spurious comment in last commit 2021-04-01 19:57:05 +02:00
f90-tests.el ; * test/lisp/progmodes/f90-tests.el: Remove stale comment. 2021-02-26 17:11:49 +01:00
flymake-tests.el ; Minor doc fixes found by checkdoc 2021-09-13 06:44:52 +02:00
gdb-mi-tests.el
glasses-tests.el
grep-tests.el Abbreviate rgrep command on MS Windows (bug#48302) 2021-05-12 10:47:07 +02:00
js-tests.el
octave-tests.el Tweak octave continuation indentation 2021-05-30 06:25:47 +02:00
opascal-tests.el
pascal-tests.el
perl-mode-tests.el perl-mode: fix variable fontification 2021-08-07 12:37:47 +02:00
project-tests.el project--files-in-directory: Fix handling of ignores 2021-09-06 05:01:07 +03:00
ps-mode-tests.el
python-tests.el Make syntax-ppss more accurate for Python triple quotes (bug#49518) 2021-09-21 10:56:27 +01:00
ruby-mode-tests.el Change ruby-align-chained-calls indendation 2021-09-09 16:24:57 +02:00
scheme-tests.el
sh-script-tests.el Add a test for bug#50320 in sh-script 2021-09-02 08:43:48 +02:00
sql-tests.el
subword-tests.el
tcl-tests.el Fix tcl-mode indentation of namespaced code 2021-02-08 07:33:49 +01:00
xref-tests.el Fix the tests 2021-09-13 15:47:45 +03:00