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

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

[nongnu] elpa/adoc-mode 5421059e54 015/199: small change in regexp for u


From: ELPA Syncer
Subject: [nongnu] elpa/adoc-mode 5421059e54 015/199: small change in regexp for unconstrained quote
Date: Sun, 3 Sep 2023 06:59:12 -0400 (EDT)

branch: elpa/adoc-mode
commit 5421059e545a390993311bfbb40fb35c877e8269
Author: Florian Kaufmann <sensorflo@gmail.com>
Commit: Florian Kaufmann <sensorflo@gmail.com>

    small change in regexp for unconstrained quote
    AsciiDoc's internal regexp has changed
---
 adoc-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/adoc-mode.el b/adoc-mode.el
index 0b73af46d9..37bf3b4171 100644
--- a/adoc-mode.el
+++ b/adoc-mode.el
@@ -623,7 +623,7 @@ NOT-ALLOWED-CHARS are chars not allowed before the quote."
 ;; # Non-word (\W) characters are allowed at boundaries to accommodate
 ;; # enveloping quotes.
 ;;
-;; reo = re.compile(r'(?msu)(^|[^\w;:])(\[(?P<attrlist>[^[\]]+?)\])?' \
+;; reo = re.compile(r'(?msu)(^|[^\w;:}])(\[(?P<attrlist>[^[\]]+?)\])?' \
 ;;     + r'(?:' + re.escape(lq) + r')' \
 ;;     + r'(?P<content>\S|\S.*?\S)(?:'+re.escape(rq)+r')(?=\W|$)')
 (defun adoc-re-constrained-quote (ldel &optional rdel)
@@ -639,7 +639,7 @@ subgroups:
     (concat
      ;; added &<> because those are special chars which are substituted by a
      ;; entity, which ends in ;, which is prohibited in the ascidoc.conf regexp
-     (adoc-re-quote-precondition "A-Za-z0-9;:&<>")  
+     (adoc-re-quote-precondition "A-Za-z0-9;:}&<>")  
      "\\(\\[[^][]+?\\]\\)?"
      "\\(" qldel "\\)"
      "\\([^ \t\n]\\|[^ \t\n].*?\\(?:\n.*?\\)\\{,1\\}?[^ \t\n]\\)"



reply via email to

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