diff options
author | Arash Esbati <arash@gnu.org> | 2022-01-20 19:20:34 +0100 |
---|---|---|
committer | Arash Esbati <arash@gnu.org> | 2022-01-20 19:20:34 +0100 |
commit | 808917b3fc380d66e9791dc5769298554f41b3dd (patch) | |
tree | 928c99c2cff783b658cf5db297c8f3d246be7ff0 | |
parent | b01604b362755d02a05c65df4fca321ec84007d9 (diff) | |
download | emacs-808917b3fc380d66e9791dc5769298554f41b3dd.tar.gz |
Remove matching of whitespaces in LaTeX environment names
* lisp/textmodes/ispell.el (ispell-tex-skip-alists): Don't match
arbitrary number of whitespaces in LaTeX environment names.
(bug#53390)
-rw-r--r-- | lisp/textmodes/ispell.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index ae3b18ed179..6382b402c06 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1673,14 +1673,13 @@ Valid forms include: ("\\\\bibliographystyle" ispell-tex-arg-end) ("\\\\makebox" ispell-tex-arg-end 0) ("\\\\e?psfig" ispell-tex-arg-end) - ("\\\\document\\(class\\|style\\)" . - "\\\\begin[ \t\n]*{[ \t\n]*document[ \t\n]*}")) + ("\\\\document\\(class\\|style\\)" . "\\\\begin[ \t\n]*{document}")) (;; delimited with \begin. In ispell: displaymath, eqnarray, eqnarray*, ;; equation, minipage, picture, tabular, tabular* (ispell) ("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0) ("list" ispell-tex-arg-end 2) - ("program" . "\\\\end[ \t\n]*{[ \t\n]*program[ \t\n]*}") - ("verbatim\\*?" . "\\\\end[ \t\n]*{[ \t\n]*verbatim\\*?[ \t\n]*}")))) + ("program" . "\\\\end[ \t]*{program}") + ("verbatim\\*?" . "\\\\end[ \t]*{verbatim\\*?}")))) "Lists of regions to be skipped in TeX mode. First list is used raw. Second list has key placed inside \\begin{}. |