From ea4c28e307622fd575d95d9d81b29820c6feff99 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 14 Nov 2023 21:43:22 +0100 Subject: Make new test files pass --- gerbonara/rs274x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gerbonara/rs274x.py') diff --git a/gerbonara/rs274x.py b/gerbonara/rs274x.py index d5cbb34..cfada76 100644 --- a/gerbonara/rs274x.py +++ b/gerbonara/rs274x.py @@ -602,6 +602,7 @@ class GerberParser: fr"(?:D0?([123]))?$", 'region_start': r'G36$', 'region_end': r'G37$', + 'eof': r"(D02)?M0?[02]", # P-CAD 2006 files have a spurious D02 before M02 as in "D02M02" 'aperture': r"(G54|G55)?\s*D(?P\d+)", # Allegro combines format spec and unit into one long illegal extended command. 'allegro_format_spec': r"FS(?P(L|T|D))?(?P(A|I))[NG0-9]*X(?P[0-7][0-7])Y(?P[0-7][0-7])[DM0-9]*\*MO(?PIN|MM)", @@ -624,7 +625,6 @@ class GerberParser: 'siemens_garbage': r'^ICAS$', 'old_unit':r'(?PG7[01])', 'old_notation': r'(?PG9[01])', - 'eof': r"M0?[02]", 'ignored': r"(?PM01)", # NOTE: The official spec says names can be empty or contain commas. I think that doesn't make sense. 'attribute': r"(?PG04 #@! %)?(?PTF|TA|TO|TD)(?P[._$a-zA-Z][._$a-zA-Z0-9]*)?(,(?P.*))?", -- cgit