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


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. f6e7767e13abe5be03ecc3a0f1d50ddf1d0562c4
Date: Mon, 24 Apr 2017 04:13:59 -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  f6e7767e13abe5be03ecc3a0f1d50ddf1d0562c4 (commit)
      from  38b413e9d44bb8429097e08c3923a39ab08de4af (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 f6e7767e13abe5be03ecc3a0f1d50ddf1d0562c4
Author: Arash Esbati <address@hidden>
Date:   Mon Apr 24 10:12:24 2017 +0200

    Do not highlight control spaces with "\ "
    
    * font-latex.el (font-latex-match-simple-command): Add space to
    the list of characters to be ignored.

diff --git a/font-latex.el b/font-latex.el
index 47b6607..83e2115 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1781,10 +1781,11 @@ marks boundaries for searching for group ends."
 
 (defun font-latex-match-simple-command (limit)
   "Search for command like \\foo before LIMIT."
-  ;; The \\\\[^,-] makes sure we don't highlight hyphenation as commands
-  ;; (foo\-bar) nor thin spaces (foo\,bar).  \s_ matches chars with symbol
-  ;; syntax, \sw chars with word syntax.
-  (TeX-re-search-forward-unescaped "\\\\[^,-]\\(?:\\s_\\|\\sw\\)+" limit t))
+  ;; The \\\\[^ ,-] makes sure we don't highlight hyphenation as
+  ;; commands (foo\-bar), nor thin spaces (foo\,bar) nor control
+  ;; spaces (foo\ bar).  \s_ matches chars with symbol syntax, \sw
+  ;; chars with word syntax.
+  (TeX-re-search-forward-unescaped "\\\\[^ ,-]\\(?:\\s_\\|\\sw\\)+" limit t))
 
 (defun font-latex-match-math-env (limit)
   "Match math pattern up to LIMIT.

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

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


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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