[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/adoc-mode e6b8e69843 090/199: bugfix: empty AsciiDoc attri
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/adoc-mode e6b8e69843 090/199: bugfix: empty AsciiDoc attributes (e.g. [, ]) caused adoc-mode to enter infinite loop |
Date: |
Sun, 3 Sep 2023 06:59:37 -0400 (EDT) |
branch: elpa/adoc-mode
commit e6b8e6984360b69ba3e05012f04723fe91fe81db
Author: Philip Lord <phillip.lord@newcastle.ac.uk>
Commit: sensorflo <sensorflo@gmail.com>
bugfix: empty AsciiDoc attributes (e.g. [,]) caused adoc-mode to enter
infinite loop
---
adoc-mode-test.el | 14 ++++++++++++++
adoc-mode.el | 2 ++
2 files changed, 16 insertions(+)
diff --git a/adoc-mode-test.el b/adoc-mode-test.el
index 3889e553da..68ca1efaa4 100644
--- a/adoc-mode-test.el
+++ b/adoc-mode-test.el
@@ -299,6 +299,20 @@ removed before TRANSFORM is evaluated.
;; multiple positional attributes
"[" markup-meta-face "hello" markup-value-face "," markup-meta-face
"world" markup-value-face "]" markup-meta-face "\n" nil
+ ;; multiple positional attributes, however one or both are empty (really
empty or only one space)
+ "[" markup-meta-face "hello" markup-value-face ",]" markup-meta-face "\n"
nil
+ "[" markup-meta-face "hello" markup-value-face "," markup-meta-face " "
markup-value-face "]" markup-meta-face "\n" nil
+ "[," markup-meta-face "hello" markup-value-face "]" markup-meta-face "\n"
nil
+ "[" markup-meta-face " " markup-value-face "," markup-meta-face "hello"
markup-value-face "]" markup-meta-face "\n" nil
+ "[,]" markup-meta-face "\n" nil
+ "[," markup-meta-face " " markup-value-face "]" markup-meta-face "\n" nil
+ "[" markup-meta-face " " markup-value-face ",]" markup-meta-face "\n" nil
+ "[" markup-meta-face " " markup-value-face "," markup-meta-face " "
markup-value-face "]" markup-meta-face "\n" nil
+
+ ;; zero positional attributes
+ "[]" markup-meta-face "\n" nil
+ "[" markup-meta-face " " markup-value-face "]" markup-meta-face "\n" nil
+
;; keyword attribute
"[" markup-meta-face "salute" markup-attribute-face "=" markup-meta-face
"hello" markup-value-face "]" markup-meta-face "\n" nil
;; keyword attribute where value is a string
diff --git a/adoc-mode.el b/adoc-mode.el
index 474ef6e74f..2de6492396 100644
--- a/adoc-mode.el
+++ b/adoc-mode.el
@@ -1293,6 +1293,8 @@ text having adoc-reserved set to 'block-del."
(face (adoc-attribute-elt-face pos-or-id (get-text-property
(match-beginning 0) 'adoc-attribute-list))))
(put-text-property (match-beginning group) (match-end group) 'face
face))
(when (numberp pos-or-id) (setq pos-or-id (1+ pos-or-id)))))))
+
+ (goto-char end2))))
nil)
(defun adoc-facespec-subscript ()
- [nongnu] elpa/adoc-mode fb4e940e0d 066/199: edited adoc-version's doc string, (continued)
- [nongnu] elpa/adoc-mode fb4e940e0d 066/199: edited adoc-version's doc string, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode a805bd9787 071/199: bump version to 0.5.1, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 4b6054b5c8 079/199: added adoc-insert-indented, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode f779544180 084/199: bumped version to 0.6.1, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 27bf57f6fd 095/199: in commentary section, fixed wrong recipe how to use autoload, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 1b3a175861 100/199: renamings and improved comments in field of macros, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode fc590439b0 110/199: attribute list of macros can now spawn more than two lines, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 745884359a 117/199: added imenu support, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode fceae4560c 133/199: Kill all tabs, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 92da496f3d 151/199: Tweak the test command, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode e6b8e69843 090/199: bugfix: empty AsciiDoc attributes (e.g. [, ]) caused adoc-mode to enter infinite loop,
ELPA Syncer <=
- [nongnu] elpa/adoc-mode 976794ddc2 171/199: Update the changelog, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode cd2da9591a 172/199: Fix function name, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 07ac0c12d3 176/199: Tweak the README, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 65794ce2da 188/199: Addresses #33. Reduce formatting lag by `adoc-kwf-search`, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 9e1ea49b09 196/199: Listing blocks and literal blocks can have source style., ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 0348f96d72 101/199: local refactoring in field of attribute list, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 576d724330 114/199: 'caption' of http/... inline macros can now contain commas, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 2682662c96 118/199: Use mode-* to set var require-final-newline, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode db6c51c8e7 128/199: Restructure the README, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 46e8ea4126 129/199: Add Eldev and a GHA workflow based on it, ELPA Syncer, 2023/09/03