check_spelling: allow variables with an 'th suffix (for indices)
This commit is contained in:
@@ -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 = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user