summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gerber/rs274x.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 4ab5472..692ce71 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -306,6 +306,12 @@ class GerberParser(object):
while did_something and len(line) > 0:
did_something = False
+ # consume empty data blocks
+ if line[0] == '*':
+ line = line[1:]
+ did_something = True
+ continue
+
# coord
(coord, r) = _match_one(self.COORD_STMT, line)
if coord: