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

add more kinds of comments when ignoring missing break statement

parent fc06160b
No related branches found
No related tags found
No related merge requests found
......@@ -596,7 +596,11 @@ def blender_check_kw_switch(index_kw_start, index_kw, index_kw_end):
break
elif tokens[i].type in Token.Comment:
if tokens[i].text == "/* fall-through */":
if tokens[i].text in {
"/* fall-through */", "/* fall through */",
"/* pass-through */", "/* pass through */",
}:
ok = True
break
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment