[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex f5cf886 14/57: Add support for plus sign in macr
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex f5cf886 14/57: Add support for plus sign in macro syntax specification list |
Date: |
Tue, 25 Jul 2017 14:02:29 -0400 (EDT) |
branch: externals/auctex
commit f5cf886d72e80bb9b7d22e922869a33fd9bb33f6
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Add support for plus sign in macro syntax specification list
* font-latex.el (font-latex-match-command-with-arguments): Support
plus sign besides asterisk in specification of macro syntax.
---
font-latex.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index 746193b..5fe53bf 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1613,10 +1613,13 @@ Returns nil if none of KEYWORDS is found."
font-latex-command-with-args-default-spec)))
(parse-sexp-ignore-comments t)) ; scan-sexps ignores comments
(goto-char (match-end 0))
- ;; Check for starred macro if first spec is an asterisk.
- (when (eq (car spec-list) ?*)
+ ;; Check for starred macro if first spec is an asterisk or a
+ ;; plus sign in case of \defaultfontfeatures+ provided by
+ ;; fontspec.sty
+ (when (or (eq (car spec-list) ?*)
+ (eq (car spec-list) ?+))
(setq spec-list (cdr spec-list))
- (skip-chars-forward "*" (1+ (point))))
+ (skip-chars-forward "*+" (1+ (point))))
;; Add current point to match data and use keyword face for
;; region from start to point.
(nconc match-data (list (point)))
@@ -1643,7 +1646,7 @@ Returns nil if none of KEYWORDS is found."
(forward-char)
(if (zerop (skip-syntax-forward "_w"))
(forward-char) ; Single-char macro.
- (skip-chars-forward "*"))
+ (skip-chars-forward "*+"))
(point))))
(nconc font-latex-matched-faces (list face))
(setq end (max end (point)))
- [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 <=
- [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, 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