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

Muhammad Moinur Rahman <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by bofh:

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

commit b8fe24d22652dcc83bf9bf0066b9952b6ce14265
Author:     Muhammad Moinur Rahman <[email protected]>
AuthorDate: 2023-04-19 19:20:37 +0000
Commit:     Muhammad Moinur Rahman <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.