branch: externals/auctex commit 65e56e181c1e46353141c8a9a8252515a9bad0f6 Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@gnu.org>
; Make sure that `regex-opt' builds a shy group. * style/minted.el (LaTeX-minted-add-syntactic-keywords-extra): Make sure that `regex-opt' builds a shy group. Minor code rearrangement. --- style/minted.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/style/minted.el b/style/minted.el index b6c75d3..159e853 100644 --- a/style/minted.el +++ b/style/minted.el @@ -302,13 +302,12 @@ are loaded." TYPE is one of the symbols `brace' or `delim' indicating how verbatim text is enclosed after the macro. MACRO is a string or a list of strings." - (let ((macro (if (listp macro) - (regexp-opt macro) - macro)) - (syntax (if (eq type 'brace) + (let ((syntax (if (eq type 'brace) '((1 "|") (2 "|")) '((1 "\"") (2 ".") (3 "\"")))) regexp) + (when (listp macro) + (setq macro (regexp-opt macro "\\(?:"))) (setq regexp `(,(concat ;; The backslash (regexp-quote TeX-esc)