157 r'!CMDLINE (.+)', |
157 r'!CMDLINE (.+)', |
158 'cmdline'): |
158 'cmdline'): |
159 result.cmdline = self.groups[0] |
159 result.cmdline = self.groups[0] |
160 else: |
160 else: |
161 self.parse_error("couldn't understand header syntax: " + repr(header_entry.text)) |
161 self.parse_error("couldn't understand header syntax: " + repr(header_entry.text)) |
|
162 if not result.filetype: |
|
163 self.parse_error('LDRAW_ORG line is missing') |
162 return { |
164 return { |
163 'header': result, |
165 'header': result, |
164 'end-index': self.cursor + 1, |
166 'end-index': self.cursor + 1, |
165 } |
167 } |
166 def parse_error(self, message): |
168 def parse_error(self, message): |