diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-08-02 09:10:20 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-08-02 09:10:20 +0200 |
commit | 510161d65191a8b7b79d27f98a93aa580564a831 (patch) | |
tree | 3ba2b4d71a7a88a64182c6bf3b2f542e0fda9066 | |
parent | d612a5065108d1ec82f7f858c44d3a833d84315d (diff) | |
download | icestorm-510161d65191a8b7b79d27f98a93aa580564a831.tar.gz icestorm-510161d65191a8b7b79d27f98a93aa580564a831.tar.bz2 icestorm-510161d65191a8b7b79d27f98a93aa580564a831.zip |
Fixed icebox .comment and .sym parsing
-rw-r--r-- | icebox/icebox.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/icebox/icebox.py b/icebox/icebox.py index 5823294..b8858d3 100644 --- a/icebox/icebox.py +++ b/icebox/icebox.py @@ -579,8 +579,10 @@ class iceconfig: assert line[1] in ["1k", "8k"] self.device = line[1] continue - if line[0] in [".comment", ".sym"]: + if line[0] == ".sym": self.symbols.setdefault(int(line[1]), set()).add(line[2]) + continue + if line[0] == ".comment": expected_data_lines = -1 continue print("%sWarning: ignoring line %d: %s" % (logprefix, linenum, linetext.strip())) |