This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  75d672cfd20f47e2fd8271551b5e299f204b56c5 (commit)
      from  3654a620e1d90d48b57c9fc212abd1833e816995 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 75d672cfd20f47e2fd8271551b5e299f204b56c5
Author: Tassilo Horn <>
Date:   Sun Sep 18 17:05:00 2016 +0200

    Improve font-locking of verbatim environments
    * font-latex.el (font-latex-set-syntactic-keywords): Handle case where
      verbatim content immediately follows \begin{verb-env}.

diff --git a/font-latex.el b/font-latex.el
index 12ebd04..71004cd 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -941,7 +941,10 @@ have changed."
                       ;; another mandatory argument(s) (e.g. with VerbatimOut 
                       ;; the minted envs or defined with `lstnewenvironment').
-                      "\\(\n\\)")
+                      ;; Now match the final newline.  The "." alternative
+                      ;; catches the case where verbatim content is written
+                      ;; immediately after the \begin{verbatim}.
+                      "\\(\n\\|.\\)")
                     (1 "|" t)))
       (add-to-list 'font-latex-syntactic-keywords
                   ;; Using the newline character for the syntax


Summary of changes:
 font-latex.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


auctex-diffs mailing list

Reply via email to