auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] [elpa] externals/auctex 1b6e513 22/80: ; Use `LaTeX-extra


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 1b6e513 22/80: ; Use `LaTeX-extract-key-value-label'
Date: Wed, 16 Oct 2019 11:07:09 -0400 (EDT)

branch: externals/auctex
commit 1b6e5136b2a634ea9747d3515bbc6e98faa1f45c
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    ; Use `LaTeX-extract-key-value-label'
    
    * style/tcolorbox.el (LaTeX-tcolorbox-newtcolorbox-regexp)
    (LaTeX-tcolorbox-newtcbox-regexp): Use
    `LaTeX-extract-key-value-label' to build the regexp.
---
 style/tcolorbox.el | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/style/tcolorbox.el b/style/tcolorbox.el
index d8e9ffb..cae2662 100644
--- a/style/tcolorbox.el
+++ b/style/tcolorbox.el
@@ -46,6 +46,7 @@
 
 ;; Needed for auto-parsing:
 (require 'tex)
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
@@ -405,13 +406,9 @@
 (defvar LaTeX-tcolorbox-newtcolorbox-regexp
   `(,(concat "\\\(re\)?newtcolorbox"
             "[
%]*"
-            "\(?:\[[^][]*"
-              "\(?:{[^}{]*"
-                "\(?:{[^}{]*"
-                  "\(?:{[^}{]*}[^}{]*\)*"
-                "}[^}{]*\)*"
-              "}[^][]*\)*"
-            "\]\)?"
+            "\(?:"
+            (LaTeX-extract-key-value-label 'none)
+            "\)?"
             "[
%]*"
             "{\([a-zA-Z0-9]+\)}"
             "[
%]*"
@@ -427,13 +424,9 @@
 (defvar LaTeX-tcolorbox-newtcbox-regexp
   `(,(concat "\\\(re\)?newtcbox"
             "[
%]*"
-            "\(?:\[[^][]*"
-              "\(?:{[^}{]*"
-                "\(?:{[^}{]*"
-                  "\(?:{[^}{]*}[^}{]*\)*"
-                "}[^}{]*\)*"
-              "}[^][]*\)*"
-            "\]\)?"
+            "\(?:"
+            (LaTeX-extract-key-value-label 'none)
+            "\)?"
             "[
%]*"
             "{\\\([a-zA-Z]+\)}"
             "[
%]*"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]