summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-01-26 22:24:45 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-01-26 22:24:45 -0500
commit208149d6769e608918e04977a5af110bce9c5bd6 (patch)
tree5a9fd462219dda5c36067fb3db7dc2467e8a0861 /gerber/rs274x.py
parentc054136a6531404e3b20aadbc7fba2ec25b50a4a (diff)
downloadgerbonara-208149d6769e608918e04977a5af110bce9c5bd6.tar.gz
gerbonara-208149d6769e608918e04977a5af110bce9c5bd6.tar.bz2
gerbonara-208149d6769e608918e04977a5af110bce9c5bd6.zip
merge upstream changes
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 2e5a3ec..abd7366 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -113,6 +113,7 @@ class GerberFile(CamFile):
f.write("\n")
+
class GerberParser(object):
""" GerberParser
"""
@@ -156,6 +157,7 @@ class GerberParser(object):
APERTURE_STMT = re.compile(r"(?P<deprecated>(G54)|G55)?D(?P<d>\d+)\*")
+
COMMENT_STMT = re.compile(r"G04(?P<comment>[^*]*)(\*)?")
EOF_STMT = re.compile(r"(?P<eof>M02)\*")