Skip to content

Commit

Permalink
fix check-cfg-flags.py
Browse files Browse the repository at this point in the history
  • Loading branch information
devrandom committed Apr 24, 2024
1 parent 1b68d0e commit e30b26a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci/check-cfg-flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ def check_cfg_args(cfg):
line = file.readline()
if not line:
break
if "#[cfg(" in line:
if "#[cfg(" in line and not "quote!" in line:
if not line.strip().startswith("//"):
cfg_part = cfg_regex.match(line.strip()).group(1)
match = cfg_regex.match(line.strip())
if match is None:
print("Bad cfg line: " + line.strip())
continue
cfg_part = match.group(1)
check_cfg_args(cfg_part)

0 comments on commit e30b26a

Please sign in to comment.