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. b8520592e6cc27da76d98


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. b8520592e6cc27da76d98c6cc543926dea8d52ab
Date: Tue, 11 May 2021 16:32:55 -0400 (EDT)

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  b8520592e6cc27da76d98c6cc543926dea8d52ab (commit)
      from  70907dd660e833166798931e0d542d6ced4021bf (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 b8520592e6cc27da76d98c6cc543926dea8d52ab
Author: Tassilo Horn <tsdh@gnu.org>
Date:   Tue May 11 22:32:43 2021 +0200

    ; Improve previous commit

diff --git a/font-latex.el b/font-latex.el
index 455a603..e852ea7 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1909,7 +1909,15 @@ signs to follow the point and must be 1 or 2."
        ;; check 1: Are we in a verbatim construct or comment?
        ((let ((ppss (syntax-ppss)))
           (or (nth 3 ppss)
-              (nth 4 ppss)))
+              (and (nth 4 ppss)
+                   ;; Ok, we are in a comment, so basically we should
+                   ;; ignore this $.  However, we need to keep our %$
+                   ;; workaround intact if there has been a valid
+                   ;; occurrence of $ in a non-math context.
+                   (not (and
+                         (looking-back
+                          (concat TeX-comment-start-regexp "[ \t]*"))
+                         (looking-at "[$][ \t]*\n"))))))
         (skip-chars-forward "$" limit))
        ;; check 2: Else, is "$" escaped?
        ((TeX-escaped-p)

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

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


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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