[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 272c9d6 15/57: Improve exclusion of reserved cha
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 272c9d6 15/57: Improve exclusion of reserved characters from command matches |
Date: |
Tue, 25 Jul 2017 14:02:29 -0400 (EDT) |
branch: externals/auctex
commit 272c9d624512cf4047f1752324096fec0ef9e0e7
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Improve exclusion of reserved characters from command matches
* font-latex.el (font-latex-match-simple-command): Skip matches
starting with reserved characters.
---
font-latex.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index 5fe53bf..ea3e829 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1784,15 +1784,16 @@ 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. We must
- ;; exclude matches where the first character after the \ is a , (thin space:
- ;; foo\,bar) or a - (hyphenation: foo\-bar).
+ ;; \s_ matches chars with symbol syntax, \sw chars with word syntax, \s.
chars
+ ;; with punctuation syntax. We must exclude matches where the first
character
+ ;; after the \ is a , (thin space: foo\,bar), a - (hyphenation: foo\-bar), a
/
+ ;; (italic correction \/) or other reserved chars like &, # or _ (\& \# \_)
(let* ((search (lambda ()
(TeX-re-search-forward-unescaped
- "\\\\\\(\\s_\\|\\sw\\)\\(?:\\s_\\|\\sw\\)*" limit t)))
+ "\\\\\\(\\s_\\|\\sw\\|\\s.\\)\\(?:\\s_\\|\\sw\\)*" limit
t)))
(pos (funcall search)))
(while (and pos
- (member (match-string 1) '("-" ",")))
+ (member (match-string 1) '("-" "," "/" "&" "#" "_")))
(setq pos (funcall search)))
pos))
- [elpa] externals/auctex updated (50798f3 -> 32f71f6), Tassilo Horn, 2017/07/25
- [elpa] externals/auctex c87ac67 03/57: Add the select environment and related macros to exam style., Tassilo Horn, 2017/07/25
- [elpa] externals/auctex a28aea0 01/57: Add test for my last commit, Tassilo Horn, 2017/07/25
- [elpa] externals/auctex cf6480c 07/57: Make preview.sty compatible with recent luatex, Tassilo Horn, 2017/07/25
- [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 <=
- [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, 2017/07/25
- [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