branch: elpa/adoc-mode commit 5421059e545a390993311bfbb40fb35c877e8269 Author: Florian Kaufmann <sensor...@gmail.com> Commit: Florian Kaufmann <sensor...@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]\\)"