[binutils-gdb] [pre-commit] Make codespell:ignore-begin/end non-greedy
Tom de Vries via Gdb-cvs <[email protected]> Mon, 1 Jun 2026 12:33:56 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0f40dbdd08c5318cd81c226996f9f48d518f42ef commit 0f40dbdd08c5318cd81c226996f9f48d518f42ef Author: Tom de Vries <[email protected]> Date: Mon Jun 1 14:33:48 2026 +0200 [pre-commit] Make codespell:ignore-begin/end non-greedy The current definition of codespell:ignore-begin/end is greedy and consequently in this example: ... /* codespell:ignore-begin */ /* Ignore this: usuable. */ /* codespell:ignore-end */ /* Don't ignore this: usuable. */ /* codespell:ignore-begin */ /* Ignore that: usuable. */ /* codespell:ignore-end */ ... the "Don't ignore this" line will be ignored. Fix this by making the definition non-greedy. Diff: --- gdb/contrib/setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/contrib/setup.cfg b/gdb/contrib/setup.cfg index 267814c2600..f6c4635d3c8 100644 --- a/gdb/contrib/setup.cfg +++ b/gdb/contrib/setup.cfg @@ -10,4 +10,4 @@ dictionary = gdb/contrib/codespell-dictionary.txt,- uri-ignore-words-list = * # How to ignore blocks of code. -ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end +ignore-multiline-regex = codespell:ignore-begin.*?codespell:ignore-end