aboutsummaryrefslogtreecommitdiffstats
path: root/icebox/icebox_vlog.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-07-29 10:05:24 +0200
committerClifford Wolf <clifford@clifford.at>2015-07-29 10:05:24 +0200
commitcf734064adff508ca386d7ccab1d489fbc030826 (patch)
tree55b3c53bcdfaa37c5eef1c8b0ed386f22fbc8d7b /icebox/icebox_vlog.py
parent713db2d1fcc51f003b68e4b0f93dbbddadd911b5 (diff)
downloadicestorm-cf734064adff508ca386d7ccab1d489fbc030826.tar.gz
icestorm-cf734064adff508ca386d7ccab1d489fbc030826.tar.bz2
icestorm-cf734064adff508ca386d7ccab1d489fbc030826.zip
icebox_vlog -s bugfix
Diffstat (limited to 'icebox/icebox_vlog.py')
-rwxr-xr-xicebox/icebox_vlog.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/icebox/icebox_vlog.py b/icebox/icebox_vlog.py
index 28d12e2..4d2bba8 100755
--- a/icebox/icebox_vlog.py
+++ b/icebox/icebox_vlog.py
@@ -824,10 +824,13 @@ for line in text_wires:
match = re.match(r"wire ([^ ;]+)(.*)", line)
if match:
if strip_comments:
+ name = match.group(1)
+ if name.startswith("\\"):
+ name += " "
if match.group(1) in wire_to_reg:
- new_text_regs.append(match.group(1))
+ new_text_regs.append(name)
else:
- new_text_wires.append(match.group(1))
+ new_text_wires.append(name)
continue
else:
if match.group(1) in wire_to_reg: