branch: elpa/adoc-mode commit 524e3aec6c4afbb41cff7515119a3f2a3e3dc942 Author: TobiasZawada <i...@tn-home.de> Commit: GitHub <nore...@github.com>
Fixes #49. Flyspell also ignores Block-IDs (#51) Co-authored-by: Tobias Zawada <t...@esi-group.com> --- adoc-mode.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adoc-mode.el b/adoc-mode.el index 1282dddaaa..613301ba8a 100644 --- a/adoc-mode.el +++ b/adoc-mode.el @@ -2400,11 +2400,11 @@ Use this function as matching function MATCHER in `font-lock-keywords'." ;; admonition block (list "^\\(\\[\\(?:CAUTION\\|WARNING\\|IMPORTANT\\|TIP\\|NOTE\\)\\]\\)[ \t]*$" '(1 '(face adoc-complex-replacement-face adoc-reserved block-del))) - ;; block id + ;; block id [[BLOCK-ID,SECONDARY-TEXT]] (list `(lambda (end) (adoc-kwf-std end ,(adoc-re-anchor 'block-id) '(0))) '(0 '(face adoc-meta-face adoc-reserved block-del)) - '(1 adoc-anchor-face t) - '(2 adoc-secondary-text-face t t)) + '(1 '(face adoc-anchor-face adoc-flyspell-ignore t) t) ;; BLOCK-ID + '(2 adoc-secondary-text-face t t)) ;; SECONDARY-TEXT ;; --- general attribute list block element ;; ^\[(?P<attrlist>.*)\]$