git: b8fe24d226 - main - vale/styles: Add BlockIgnore for [.programlisting]

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 19 Apr 2023 19:21:38 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/doc/commit/?id=b8fe24d22652dcc83bf9bf0066b9952b6ce14265

commit b8fe24d22652dcc83bf9bf0066b9952b6ce14265
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-04-19 19:20:37 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-04-19 19:20:37 +0000

    vale/styles: Add BlockIgnore for [.programlisting]
    
    In some older documents there are code snippets with the following tags
    which are non standard for asciidoc:
    
    [.programlisting]
    ....
    CODE
    ....
    
    As this is non-standard vale does not escape this and finds spelling
    error but these blocks should be ignored by vale. This patch adds
    relevant directives to ignore the blocks.
    
    Approved by:    carlavilla (mentor)
    Differential Revision:  https://reviews.freebsd.org/D39702
---
 .vale.ini | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.vale.ini b/.vale.ini
index 4060ac02bb..46d3593082 100644
--- a/.vale.ini
+++ b/.vale.ini
@@ -10,6 +10,7 @@ attribute-missing = drop
 
 [*.adoc]
 BasedOnStyles = FreeBSD, Vale
+BlockIgnores = (?s) *(\[\.programlisting\]\n\.{4}.*?\.{4})
 
 [website/content/{bn-bd,da,de,el,es,fr,hu,id,it,ja,ko,mn,nl,pl,pt-br,ru,tr,zh-cn,zh-tw}/**/*.adoc]
 BasedOnStyles = FreeBSD, Vale