check_spelling: allow variables with an 'th suffix (for indices)

This commit is contained in:
Campbell Barton
2025-04-25 08:37:11 +10:00
parent 4856cfa89c
commit 500509a789

View File

@@ -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 = []