branch: externals/auctex commit 3cf92fc2daa70cb111b73fbf6be7a51ce42d19d2 Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
Fix font-locking issue * font-latex.el (font-latex-match-command-with-arguments): Fix error introduced in the last change. --- ChangeLog | 5 +++++ font-latex.el | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a6d03c..e81c6bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-03-02 Tassilo Horn <t...@gnu.org> + + * font-latex.el (font-latex-match-command-with-arguments): Fix + error introduced in the last change. + 2015-02-24 Tassilo Horn <t...@gnu.org> * style/expl3.el: New style for the wrapper package for diff --git a/font-latex.el b/font-latex.el index c2f6536..ed953d3 100644 --- a/font-latex.el +++ b/font-latex.el @@ -1494,8 +1494,7 @@ Returns nil if none of KEYWORDS is found." (list (point) (progn (forward-char) - (if (zerop (skip-chars-forward - "\\\\\\(?:\\s_\\|\\sw\\)+")) + (if (zerop (skip-syntax-forward "_w")) (forward-char) ; Single-char macro. (skip-chars-forward "*")) (point))))