]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove matching of whitespaces in LaTeX environment names
authorArash Esbati <arash@gnu.org>
Thu, 20 Jan 2022 18:20:34 +0000 (19:20 +0100)
committerArash Esbati <arash@gnu.org>
Thu, 20 Jan 2022 18:20:34 +0000 (19:20 +0100)
* lisp/textmodes/ispell.el (ispell-tex-skip-alists): Don't match
arbitrary number of whitespaces in LaTeX environment names.
(bug#53390)

lisp/textmodes/ispell.el

index ae3b18ed1792f194e26fbd377fecdf8b1383375d..6382b402c0697e559482e694c20eb6f23b2ef15a 100644 (file)
@@ -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{}.