Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #49. Flyspell also ignores Block-IDs #51

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading