summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2014-10-26 21:39:51 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2014-10-26 21:39:51 -0200
commit777ffd385b4b380df0ffebf33b1dee0b99bde53d (patch)
tree975cf46c8d9e3f8be236ff2344ddc9da2048ea2f
parentd5c8d896d87e02d32d0c0758a09f051c141006f6 (diff)
downloadgerbonara-777ffd385b4b380df0ffebf33b1dee0b99bde53d.tar.gz
gerbonara-777ffd385b4b380df0ffebf33b1dee0b99bde53d.tar.bz2
gerbonara-777ffd385b4b380df0ffebf33b1dee0b99bde53d.zip
Fix parsing of Unknown commands
-rw-r--r--gerber/rs274x.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index f18a35d..627fcf9 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -308,6 +308,10 @@ class GerberParser(object):
if line.find('*') > 0:
yield UnknownStmt(line)
+ did_something = True
+ line = ""
+ continue
+
oldline = line
def evaluate(self, stmt):