emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex a90cab5 02/57: Fix comment environment highlight


From: Tassilo Horn
Subject: [elpa] externals/auctex a90cab5 02/57: Fix comment environment highlighting
Date: Tue, 25 Jul 2017 14:02:26 -0400 (EDT)

branch: externals/auctex
commit a90cab531b6365edf6a6ba66ad4c624b3c11d2cc
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    Fix comment environment highlighting
    
    * style/comment.el ("comment"): Don't set comment starter/ender but generic
    comment delimiters.
---
 style/comment.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/style/comment.el b/style/comment.el
index d420e6b..46054ca 100644
--- a/style/comment.el
+++ b/style/comment.el
@@ -49,14 +49,14 @@
      ;; For syntactic fontification.
      (add-to-list 'font-latex-syntactic-keywords-extra
                  ;; \begin is supposed to start at the beginning of a line.
-                 `(,(format "^\\\\begin *{\\(?:%s\\)}.*\\(\n\\)"
+                 `(,(format "^\\\\begin *{%s}.*\\(\n\\)"
                             (regexp-opt LaTeX-comment-env-list))
-                   (1 "<" t)))
+                   (1 "!" t)))
      (add-to-list 'font-latex-syntactic-keywords-extra
                  ;; \end is supposed to start at the beginning of a line.
-                 `(,(format "^\\(\\\\\\)end *{\\(?:%s\\)}"
+                 `(,(format "^\\(\\\\\\)end *{%s}"
                             (regexp-opt LaTeX-comment-env-list))
-                   (1 ">" t)))
+                   (1 "!" t)))
      (font-latex-add-keywords '(("includecomment" "{")
                                ("excludecomment" "{")
                                ("specialcomment" "{{{")



reply via email to

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