diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2014-10-26 21:39:51 -0200 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2014-10-26 21:39:51 -0200 |
commit | 777ffd385b4b380df0ffebf33b1dee0b99bde53d (patch) | |
tree | 975cf46c8d9e3f8be236ff2344ddc9da2048ea2f | |
parent | d5c8d896d87e02d32d0c0758a09f051c141006f6 (diff) | |
download | gerbonara-777ffd385b4b380df0ffebf33b1dee0b99bde53d.tar.gz gerbonara-777ffd385b4b380df0ffebf33b1dee0b99bde53d.tar.bz2 gerbonara-777ffd385b4b380df0ffebf33b1dee0b99bde53d.zip |
Fix parsing of Unknown commands
-rw-r--r-- | gerber/rs274x.py | 4 |
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): |