From 500509a7894905cab7f5caeb59b663ad42fe4807 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 Apr 2025 08:37:11 +1000 Subject: [PATCH] check_spelling: allow variables with an 'th suffix (for indices) --- tools/check_source/check_spelling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/check_source/check_spelling.py b/tools/check_source/check_spelling.py index 3abed59d247..5fc9b3c6872 100755 --- a/tools/check_source/check_spelling.py +++ b/tools/check_source/check_spelling.py @@ -488,6 +488,8 @@ def extract_c_comments(filepath: str) -> tuple[list[Comment], set[str]]: code_words.add(w) # Allow plurals of these variables too. code_words.add(w + "'s") + # Allow `th` suffix, mainly for indices, e.g. the `i'th` element. + code_words.add(w + "'th") comments = []