From 308e4c22771fe72d58f14f6aa095fe54abefb6a3 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Tue, 24 Mar 2015 20:16:06 +1100 Subject: [PATCH] add more kinds of comments when ignoring missing break statement --- check_source/check_style_c.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_source/check_style_c.py b/check_source/check_style_c.py index 9bae31f..8a931f3 100755 --- a/check_source/check_style_c.py +++ b/check_source/check_style_c.py @@ -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: -- GitLab