diff options
| author | Reuben Thomas | 2025-11-20 14:38:18 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2025-11-22 13:15:45 +0200 |
| commit | e1f851e8402167f28c8985b87a60fbf192f8ee98 (patch) | |
| tree | 2cc6c25e4c57adeb268b709b455120f99d48d777 /java | |
| parent | 0762d9b4de5a85863f6a54bde9fa504c2b92a9af (diff) | |
| download | emacs-e1f851e8402167f28c8985b87a60fbf192f8ee98.tar.gz emacs-e1f851e8402167f28c8985b87a60fbf192f8ee98.zip | |
Fix ispell’s handling of comment-end when adding local words
* lisp/textmodes/ispell.el (ispell-add-per-file-word-list): Deal
with `comment-end' in a way that works for comments that don’t
nest.
We proceed as follows: when `comment-end' is non-empty, we only
ever insert one start and one end comment, the first time we add
a local word. This works with both C-style (which don’t nest)
and Rust-style comments (which do).
If we’re using line comments (i.e. comments that only have a
`comment-start'), then continue to insert one on each line.
* test/lisp/textmodes/ispell-tests/ispell-tests.el
(ispell/ispell-add-per-file-word-list/nxml): Adjust test.
Bug#79871
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions