[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex f6e7767 06/57: Do not highlight control spaces w
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex f6e7767 06/57: Do not highlight control spaces with "\ " |
Date: |
Tue, 25 Jul 2017 14:02:27 -0400 (EDT) |
branch: externals/auctex
commit f6e7767e13abe5be03ecc3a0f1d50ddf1d0562c4
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Do not highlight control spaces with "\ "
* font-latex.el (font-latex-match-simple-command): Add space to
the list of characters to be ignored.
---
font-latex.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
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.
- [elpa] externals/auctex 581002f 08/57: Add LaTeX core command \oldstylenums, (continued)
- [elpa] externals/auctex 581002f 08/57: Add LaTeX core command \oldstylenums, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex d412083 10/57: * tex-ispell.el (TeX-ispell-skip-cmds-list): Add \addlinespace., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f5cf886 14/57: Add support for plus sign in macro syntax specification list, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 5ea2221 19/57: * latex/preview.dtx: Adjust modification date for CTAN., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex ef7e48b 12/57: Consider the return value of `assq-delete-all', Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 272c9d6 15/57: Improve exclusion of reserved characters from command matches, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 4ddee01 38/57: * style/beamer.el ("beamer"): Query for optional argument after \pause., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex d2dfab6 30/57: Fix indentation in ConTeXt mode after indented optional argument, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 0c03e4a 36/57: Catch expl3 warnings, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex a90cab5 02/57: Fix comment environment highlighting, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f6e7767 06/57: Do not highlight control spaces with "\ ",
Tassilo Horn <=
- [elpa] externals/auctex 38b413e 05/57: Adjust macros acc. to change in `LaTeX-paragraph-commands-regexp-make', Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 93123b6 18/57: Query for expl3 package options, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex f039132 16/57: Use `ispell-tex-arg-end' on parsed elements, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex e21d071 24/57: Exclude arguments to math environments from fontification, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex dcd5503 26/57: * doc/changes.texi: Document recent changes., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 6fd235f 32/57: ; * tex-buf.el (TeX-adjust-process-coding-system): Avoid a compilation warning., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex cd36aa8 45/57: Check and set `TeX-quote-language' if necessary, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex ef68910 44/57: Add new style/australian.el and style/newzealand.el, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 6e584e9 04/57: * style/exam.el ("exam"): Remove duplicate entries and backslash., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex 9cf9f7c 09/57: Correctly exclude hypenation and thin spaces from command matches, Tassilo Horn, 2017/07/25