From 58a1f9b97b9aa44a42f3a8ebd01cc8754381839b Mon Sep 17 00:00:00 2001 From: gaekwad Date: Sat, 21 Dec 2024 15:17:13 -0500 Subject: [PATCH] [BUILD] Fix "lst_matcher" regex in relist.py. (#376) --- scripts/relist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/relist.py b/scripts/relist.py index 34bb139c..562991ee 100755 --- a/scripts/relist.py +++ b/scripts/relist.py @@ -86,7 +86,7 @@ def scan_map(map_filename: str, lst_filename:str, segment_map:Dict[str,Segment], # print(f"Done reading {line_num} lines") return segment_map, module_map -lst_matcher = re.compile(r"^([0-9A-F]{6})r \\d (\w\w | )(\w\w | )(\w\w | )(\w\w | )\s*$") +lst_matcher = re.compile(r"^([0-9A-F]{6})r \d (\w\w | )(\w\w | )(\w\w | )(\w\w | )\s*$") seg_matcher = re.compile(r'^\s*\.segment "([A-Z_][A-Z0-9_]*)"', re.IGNORECASE) spc_matcher = re.compile(r'^\s*\.(bss|code|data|rodata|zeropage)(\s|$)', re.IGNORECASE)