From 0fd48f793907f0b053334303074e42cdcc80eb5f Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Thu, 5 Aug 2021 20:32:55 +0100 Subject: [PATCH] Python port of 7cc4c68eb63a24f9cbf814254cd537df819958e5 Signed-off-by: Yuto Takano --- tests/scripts/check-names.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/check-names.py b/tests/scripts/check-names.py index 5b8159681c..96838f2f30 100755 --- a/tests/scripts/check-names.py +++ b/tests/scripts/check-names.py @@ -213,7 +213,7 @@ class NameCheck(object): 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\w+)", line) if enum_const: enum_consts.append(Match(