aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorReuben Thomas2025-11-20 14:38:18 +0000
committerEli Zaretskii2025-11-22 13:15:45 +0200
commite1f851e8402167f28c8985b87a60fbf192f8ee98 (patch)
tree2cc6c25e4c57adeb268b709b455120f99d48d777 /java
parent0762d9b4de5a85863f6a54bde9fa504c2b92a9af (diff)
downloademacs-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