diff options
author | Neel Gala <neelgala@incoresemi.com> | 2023-01-14 13:34:05 +0530 |
---|---|---|
committer | Neel Gala <neelgala@incoresemi.com> | 2023-01-14 13:34:05 +0530 |
commit | 05c08f12f8a5f4bfab176e70f0999f8bfbf27699 (patch) | |
tree | 1d8e803618b0b09af7d38082eef10e51f482f187 /parse.py | |
parent | 4daf1ab88b4e821cca64b76217411f5c6cd4c250 (diff) | |
download | riscv-opcodes-05c08f12f8a5f4bfab176e70f0999f8bfbf27699.zip riscv-opcodes-05c08f12f8a5f4bfab176e70f0999f8bfbf27699.tar.gz riscv-opcodes-05c08f12f8a5f4bfab176e70f0999f8bfbf27699.tar.bz2 |
fix regex fpr pseudo op lookup to ensure that we don't hit on substrings
Diffstat (limited to 'parse.py')
-rwxr-xr-x | parse.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |