branch: elpa/flycheck
commit 96f1852c7e352c969393e6e66176178177e933be
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Add asciidoc-mode support to AsciiDoc checkers
    
    asciidoc-mode (https://github.com/bbatsov/asciidoc-mode) is now
    recognized by the asciidoctor and textlint checkers, alongside the
    existing adoc-mode.
---
 CHANGES.rst | 2 ++
 flycheck.el | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CHANGES.rst b/CHANGES.rst
index b3f222a3ff..56213312cc 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,8 @@
 ``master`` (unreleased)
 =======================
 
+- Add ``asciidoc-mode`` support to the ``asciidoctor`` and ``textlint``
+  checkers, alongside the existing ``adoc-mode``.
 - Add ``neocaml-opam-mode`` support to the ``opam`` checker.
 - [#2169]: Parse the severity-tagged output format introduced by Ruff 0.15.7
   in preview mode (e.g. ``error[F401]`` instead of ``F401``).
diff --git a/flycheck.el b/flycheck.el
index dddd3fa1fe..0282687b98 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -7530,7 +7530,7 @@ See URL `https://asciidoctor.org'."
    (warning line-start
             "asciidoctor: WARNING: <stdin>: Line " line ": " (message)
             line-end))
-  :modes adoc-mode)
+  :modes (adoc-mode asciidoc-mode))
 
 (defun flycheck-awk-gawk-fix-message (err)
   "Remove the repeated file-name/line from the error message of ERR."
@@ -12502,7 +12502,7 @@ See URL `https://textlint.github.io/'."
   ;; user to add mode->plugin mappings manually in
   ;; `flycheck-textlint-plugin-alist'.
   :modes
-  (text-mode markdown-mode gfm-mode message-mode adoc-mode
+  (text-mode markdown-mode gfm-mode message-mode adoc-mode asciidoc-mode
              mhtml-mode latex-mode LaTeX-mode org-mode rst-mode)
   :enabled
   (lambda () (flycheck--textlint-get-plugin))

Reply via email to