Skip to content

Commit

Permalink
Fixes #49. Flyspell also ignores Block-IDs (#51)
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Zawada <TOZ@esi-group.com>
  • Loading branch information
TobiasZawada and Tobias Zawada committed Feb 10, 2024
1 parent 0c63a49 commit 524e3ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adoc-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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>.*)\]$
Expand Down

0 comments on commit 524e3ae

Please sign in to comment.