Skip to content
Snippets Groups Projects
Commit ea9b4b76 authored by Campbell Barton's avatar Campbell Barton
Browse files

check_spelling: ignore plurals of variables in the file

parent 6dddb863
No related branches found
No related tags found
No related merge requests found
...@@ -309,6 +309,8 @@ def extract_c_comments(filepath): ...@@ -309,6 +309,8 @@ def extract_c_comments(filepath):
for i, i_next in code_ranges: for i, i_next in code_ranges:
for match in re_vars.finditer(text[i:i_next]): for match in re_vars.finditer(text[i:i_next]):
code_words.add(match.group(0)) code_words.add(match.group(0))
# Allow plurals of these variables too.
code_words.add(match.group(0) + "'s")
comments = [] comments = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment