[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 3320d1e 1/7: Improve command highlighting to not
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 3320d1e 1/7: Improve command highlighting to not be triggered by hyphenation |
Date: |
Fri, 21 Apr 2017 10:59:07 -0400 (EDT) |
branch: externals/auctex
commit 3320d1eb0f35f458325892adccce61fa3bbbe74b
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Improve command highlighting to not be triggered by hyphenation
Reported by François Patte.
---
font-latex.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index 0f2c893..e1c8e55 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1781,8 +1781,10 @@ marks boundaries for searching for group ends."
(defun font-latex-match-simple-command (limit)
"Search for command like \\foo before LIMIT."
- ;; \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). \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, 2017/04/21
- [elpa] externals/auctex 3320d1e 1/7: Improve command highlighting to not be triggered by hyphenation,
Tassilo Horn <=
- [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