[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.
- [elpa] externals/auctex updated (2006ac9 -> 3edf068), Tassilo Horn, 2017/04/21
- [elpa] externals/auctex 08930b5 4/7: Improve error handling for Japanese users, Tassilo Horn, 2017/04/21
- [elpa] externals/auctex 865906c 2/7: Support upmendex, Tassilo Horn, 2017/04/21
- [elpa] externals/auctex f676608 5/7: Fix parsing of LaTeX2e date formats, Tassilo Horn, 2017/04/21
- [elpa] externals/auctex 0c15e6c 6/7: Do not highlight thin spaces with \,,
Tassilo Horn <=
- [elpa] externals/auctex 3320d1e 1/7: Improve command highlighting to not be triggered by hyphenation, Tassilo Horn, 2017/04/21
- [elpa] externals/auctex c872521 3/7: Deal with strange file name, Tassilo Horn, 2017/04/21
- [elpa] externals/auctex 3edf068 7/7: Merge branch 'master' into externals/auctex, Tassilo Horn, 2017/04/21