Python port of 7cc4c68eb63a24f9cbf814254cd537df819958e5

Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
Yuto Takano 2021-08-05 20:32:55 +01:00
parent 17220988dc
commit 0fd48f7939

View File

@ -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<enum_const>\w+)", line)
if enum_const:
enum_consts.append(Match(