Python port of 7cc4c68eb6
Signed-off-by: Yuto Takano <yuto.takano@arm.com>
This commit is contained in:
parent
17220988dc
commit
0fd48f7939
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue