From 05c08f12f8a5f4bfab176e70f0999f8bfbf27699 Mon Sep 17 00:00:00 2001 From: Neel Gala Date: Sat, 14 Jan 2023 13:34:05 +0530 Subject: fix regex fpr pseudo op lookup to ensure that we don't hit on substrings --- parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.py') diff --git a/parse.py b/parse.py index a4a437c..4d7bab6 100755 --- a/parse.py +++ b/parse.py @@ -290,7 +290,7 @@ def create_inst_dict(file_filter, include_pseudo=False, include_pseudo_ops=[]): # extension. Else throw error. found = False for oline in open(ext_file): - if not re.findall(f'^\s*{orig_inst}',oline): + if not re.findall(f'^\s*{orig_inst}\s+',oline): continue else: found = True -- cgit v1.1