From 76abd9e3f8c8a77e589fd72548ff35cedb5a769d Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Sun, 26 Oct 2014 21:39:51 -0200 Subject: Fix parsing of Unknown commands --- gerber/rs274x.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- cgit