Python port of 7cc4c68eb63a24f9cbf814254cd537df819958e5
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
diff --git a/tests/scripts/check-names.py b/tests/scripts/check-names.py
index 5b81596..96838f2 100755
--- a/tests/scripts/check-names.py
+++ b/tests/scripts/check-names.py
@@ -213,7 +213,7 @@
state = 1
elif state is 1 and re.match(r"^}", line):
state = 0
- elif state is 1:
+ elif state is 1 and not re.match(r"^#", line):
enum_const = re.match(r"^\s*(?P<enum_const>\w+)", line)
if enum_const:
enum_consts.append(Match(