Skip to content

Commit

Permalink
Fix scripts/pare_status.py for non-status #defines (#1268) (#1274)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Allen <kallen@aurora.tech>
  • Loading branch information
jdelapla and kev-the-dev authored Sep 21, 2021
1 parent 1ac4193 commit 1fc4831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/parse_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
print(example_sums) # {'STATUS_CHILD': "0x5", 'STATUS_PARENT': "0x4"}
'''

pattern = re.compile("#define *([A-Z_]*) *(([A-Z_]*) *\+ *)?0x([0-9]*)")
pattern = re.compile("#define *(STATUS\_[A-Z_]*) *(([A-Z_]*) *\+ *)?0x([0-9]*)")

def operands_by_name(paragraph):
matches = filter(None, [pattern.match(line) for line in paragraph.splitlines()])
Expand Down

0 comments on commit 1fc4831

Please sign in to comment.