mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fixed regex to ignore comments
This commit is contained in:
+1
-1
@@ -177,7 +177,7 @@ class Project():
|
|||||||
|
|
||||||
# top module name is defined in one of the source files, which one?
|
# top module name is defined in one of the source files, which one?
|
||||||
def find_top_verilog(self):
|
def find_top_verilog(self):
|
||||||
rgx_mod = re.compile(r"(?:^|[\W])module[\s]{1,}([\w]+)")
|
rgx_mod = re.compile(r"(?:^|[\s])module[\s]{1,}([\w]+)")
|
||||||
top_verilog = []
|
top_verilog = []
|
||||||
for src in self.src_files:
|
for src in self.src_files:
|
||||||
with open(os.path.join(self.local_dir, 'src', src)) as fh:
|
with open(os.path.join(self.local_dir, 'src', src)) as fh:
|
||||||
|
|||||||
Reference in New Issue
Block a user