[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex c731038844 11/60: Improve regexp matching new en
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex c731038844 11/60: Improve regexp matching new environments |
Date: |
Fri, 8 Apr 2022 11:52:47 -0400 (EDT) |
branch: externals/auctex
commit c731038844f059d2395f3fc2bc79fbe01485a3d9
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Improve regexp matching new environments
* style/newfloat.el
(LaTeX-newfloat-DeclareFloatingEnvironment-regexp): Add 'p' to the
name of the variable. Use the function
`LaTeX-extract-key-value-label' to build the regexp. Be more
restrictive when matching the type of declared environment.
---
style/newfloat.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/style/newfloat.el b/style/newfloat.el
index 74185bd67d..5cde1d4c7a 100644
--- a/style/newfloat.el
+++ b/style/newfloat.el
@@ -1,6 +1,6 @@
;;; newfloat.el --- AUCTeX style for `newfloat.sty' (v1.1-109) -*-
lexical-binding: t; -*-
-;; Copyright (C) 2015--2021 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2022 Free Software Foundation, Inc.
;; Author: Arash Esbati <arash@gnu.org>
;; Maintainer: auctex-devel@gnu.org
@@ -82,15 +82,15 @@
;; Setup parsing for \DeclareFloatingEnvironment:
(TeX-auto-add-type "newfloat-DeclareFloatingEnvironment" "LaTeX")
-(defvar LaTeX-newfloat-DeclareFloatingEnvironment-regex
+(defvar LaTeX-newfloat-DeclareFloatingEnvironment-regexp
`(,(concat "\\\\DeclareFloatingEnvironment"
"[ \t\n\r%]*"
- "\\["
- "[ \t\n\r%{}a-zA-Z0-9=,-]*"
- "\\]"
+ "\\(?:"
+ (LaTeX-extract-key-value-label 'none)
+ "\\)?"
"[ \t\n\r%]*"
"{\\([^}]+\\)}"
- "\\(?:[ %]*{\\([^}]*\\)}\\)?")
+ "\\(?:[ %]*{\\(figure\\|table\\|verbatim\\)}\\)?")
(1 2) LaTeX-auto-newfloat-DeclareFloatingEnvironment)
"Matches the argument of `\\DeclareFloatingEnvironment' from
`newfloat.sty'.")
@@ -152,7 +152,7 @@ If `caption.el' is loaded, add the new floating environment
to
(lambda ()
;; Add newfloat to the parser.
- (TeX-auto-add-regexp LaTeX-newfloat-DeclareFloatingEnvironment-regex)
+ (TeX-auto-add-regexp LaTeX-newfloat-DeclareFloatingEnvironment-regexp)
;; Commands:
(TeX-add-symbols
- [elpa] externals/auctex updated (8ff369bd92 -> 03ed9004cd), Tassilo Horn, 2022/04/08
- [elpa] externals/auctex 0847db39c9 03/60: Improve file query in style/ltxtable.el, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex e625dc05ea 01/60: Improve keymap handling, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex 259ffc34c4 12/60: Use DEFAULT argument of `TeX-read-string' in styles, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex 90b1803b02 10/60: Use DEFAULT argument in latex.el where appropriate, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex ab3bfaf103 13/60: Don't use obsolete font-lock-syntactic-keywords, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex c731038844 11/60: Improve regexp matching new environments,
Tassilo Horn <=
- [elpa] externals/auctex 3e95554c27 19/60: Reduce code duplication in style/sidecap.el, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex b7d45e19c6 22/60: Discard obsolete hook, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex f9356664c8 23/60: Update documentation, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex f464242eab 29/60: Enable indent by square bracket, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex 2be733a3e3 28/60: Add new style/l3doc.el, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex 4bcda2d50c 35/60: Improve indentation in env from algpseudocode package, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex 8938787491 37/60: ; * style/algpseudocode.el ("algpseudocode"): Fix "While"., Tassilo Horn, 2022/04/08
- [elpa] externals/auctex b3d4a509d0 39/60: ; * doc/auctex.texi (Indenting): Fix wording., Tassilo Horn, 2022/04/08
- [elpa] externals/auctex c43d21326d 42/60: Follow similar update of latex.el in context.el, Tassilo Horn, 2022/04/08
- [elpa] externals/auctex b2cea20056 53/60: ; Delete unnecessary quoting in docstrings, Tassilo Horn, 2022/04/08