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. 2959334f519ae687966a3


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 2959334f519ae687966a33120335034a460fb3bf
Date: Wed, 12 May 2021 02:13:18 -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  2959334f519ae687966a33120335034a460fb3bf (commit)
      from  b8520592e6cc27da76d98c6cc543926dea8d52ab (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 2959334f519ae687966a33120335034a460fb3bf
Author: Tassilo Horn <tsdh@gnu.org>
Date:   Wed May 12 08:12:53 2021 +0200

    ; Improve previous commit again

diff --git a/font-latex.el b/font-latex.el
index e852ea7..ee2b99f 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1909,15 +1909,14 @@ 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)
+              ;; Ignore $ in comments...
               (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"))))))
+                   ;; ... except if we're looking for the end of the
+                   ;; inline math.  We need to consider this %$
+                   ;; comments because they are the workaround for
+                   ;; falsely triggered math mode due to valid,
+                   ;; non-math occurrences of $.
+                   (not num))))
         (skip-chars-forward "$" limit))
        ;; check 2: Else, is "$" escaped?
        ((TeX-escaped-p)

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

Summary of changes:
 font-latex.el | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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