summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/rs274x.py')
-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: