summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2014-10-26 21:39:51 -0200
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-26 22:36:47 -0400
commit76abd9e3f8c8a77e589fd72548ff35cedb5a769d (patch)
tree4b725c368b53c590e6306b4a9049cfda5c2afd1b
parentb5f8451c8f37acf9148bbd09f3326eb5aba3e053 (diff)
downloadgerbonara-76abd9e3f8c8a77e589fd72548ff35cedb5a769d.tar.gz
gerbonara-76abd9e3f8c8a77e589fd72548ff35cedb5a769d.tar.bz2
gerbonara-76abd9e3f8c8a77e589fd72548ff35cedb5a769d.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):