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

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

[elpa] externals/auctex 0c15e6c 6/7: Do not highlight thin spaces with \


From: Tassilo Horn
Subject: [elpa] externals/auctex 0c15e6c 6/7: Do not highlight thin spaces with \,
Date: Fri, 21 Apr 2017 10:59:09 -0400 (EDT)

branch: externals/auctex
commit 0c15e6c823ec52b5992d64932e9822fce8c68cbb
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Do not highlight thin spaces with \,
    
    * font-latex.el (font-latex-match-simple-command): Add comma to the list of
    characters to be ignored.
---
 font-latex.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/font-latex.el b/font-latex.el
index e1c8e55..47b6607 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1781,10 +1781,10 @@ 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).  \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).  \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.



reply via email to

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