branch: externals/auctex
commit a033c30c90bfe01e47d7231f2f7539aceb5476d9
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    ; 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:

_______________________________________________
auctex-diffs mailing list
auctex-di...@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex-diffs

Reply via email to