From 6ad452556500f3fbbd238c321d20f92c1a8fa5a2 Mon Sep 17 00:00:00 2001 From: Bettina Heim Date: Fri, 4 Aug 2023 12:51:10 +0000 Subject: [PATCH] ignore code in docs comments --- .github/workflows/config/spellcheck_config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/config/spellcheck_config.yml b/.github/workflows/config/spellcheck_config.yml index fc7b5d4a1a..d3934d8542 100644 --- a/.github/workflows/config/spellcheck_config.yml +++ b/.github/workflows/config/spellcheck_config.yml @@ -148,6 +148,9 @@ matrix: # Ignore multiline content between three or more backticks - open: '(?s)(?P\s*`{3,})\S*\s*$' close: '(?P=open)$' + # Ignore multiline content fenced by \code ... \endcode + - open: '(?s)^\s*(\\code)' + close: '\\endcode$' # Ignore content between inline backticks - open: '(?P`+)' close: '(?P=open)'