emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex a033c30 43/80: ; Use `LaTeX-extract-key-value-la


From: Tassilo Horn
Subject: [elpa] externals/auctex a033c30 43/80: ; Use `LaTeX-extract-key-value-label'
Date: Wed, 16 Oct 2019 11:07:14 -0400 (EDT)

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

    ; Use `LaTeX-extract-key-value-label'
    
    * style/fancyvrb.el (LaTeX-fancyvrb-key-val-skip-regexp): Require
    latex.el and use `LaTeX-extract-key-value-label' to build the
    regexp.
---
 style/fancyvrb.el | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/style/fancyvrb.el b/style/fancyvrb.el
index 32adcd4..1354e3b 100644
--- a/style/fancyvrb.el
+++ b/style/fancyvrb.el
@@ -45,6 +45,7 @@
 
 ;; Needed for auto-parsing:
 (require 'tex)
+(require 'latex)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
@@ -129,14 +130,7 @@ Starred versions are not included in this list.")
 Starred versions are not included in this list.")
 
 (defvar LaTeX-fancyvrb-key-val-skip-regexp
-  (concat
-   "\\(?:\\[[^][]*"
-     "\\(?:{[^}{]*"
-       "\\(?:{[^}{]*"
-        "\\(?:{[^}{]*}[^}{]*\\)*"
-       "}[^}{]*\\)*"
-     "}[^][]*\\)*"
-   "\\]\\)?")
+  (concat "\\(?:" (LaTeX-extract-key-value-label 'none) "\\)?")
   "Helper regexp to skip over an optional argument.")
 
 ;; Setup for defining new Verbatim commands:



reply via email to

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