auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 785eabfd6dc8ad1b174bd


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 785eabfd6dc8ad1b174bdad449cb2a7d408e1a69
Date: Sun, 18 Sep 2016 17:28:06 +0000 (UTC)

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  785eabfd6dc8ad1b174bdad449cb2a7d408e1a69 (commit)
      from  84d31ca5e0b7f0ae767f309f165e342d55bbce5a (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 785eabfd6dc8ad1b174bdad449cb2a7d408e1a69
Author: Tassilo Horn <address@hidden>
Date:   Sun Sep 18 19:24:39 2016 +0200

    Don't require \end{env} is on a separate line
    
    * font-latex.el (font-latex-make-user-keywords):
    (font-latex-set-syntactic-keywords): Don't require that \end{env} is on
    a line of its own.  Also allow empty mandatory argument in verbatim
    environments.

diff --git a/font-latex.el b/font-latex.el
index 71004cd..fb7f8d6 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -805,7 +805,7 @@ Generated by `font-latex-make-user-keywords'.")))
             ;; Hack to remove the verbatim face from the \ in
             ;; \end{verbatim} and similar.  The same hack is used in
             ;; tex-mode.el.
-            ("^[ \t]*\\(\\\\\\)end"
+            ("\\(\\\\\\)end"
              (1 (get-text-property (match-end 1) 'face) t))))
     (add-to-list 'font-latex-keywords-1 item)
     (add-to-list 'font-latex-keywords-2 item))
@@ -940,7 +940,7 @@ have changed."
                       ;; After the optional argument, there may also be
                       ;; another mandatory argument(s) (e.g. with VerbatimOut 
or
                       ;; the minted envs or defined with `lstnewenvironment').
-                      "\\(?:{[^}]+}\\)*"
+                      "\\(?:{[^}]*}\\)*"
                       ;; Now match the final newline.  The "." alternative
                       ;; catches the case where verbatim content is written
                       ;; immediately after the \begin{verbatim}.
@@ -954,7 +954,7 @@ have changed."
                   ;; the starting backslash of \end.  There is a hack
                   ;; in `font-latex-make-user-keywords' to remove the
                   ;; spurious fontification of the backslash.
-                  `(,(concat "^[ \t]*\\(\\\\\\)end *{\\(?:" verb-envs "\\)}")
+                  `(,(concat "\\(\\\\\\)end *{\\(?:" verb-envs "\\)}")
                     (1 "|" t))))
     (unless (= (length verb-macros-with-delims) 0)
       (add-to-list 'font-latex-syntactic-keywords

-----------------------------------------------------------------------

Summary of changes:
 font-latex.el |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]