header.py

changeset 67
afaa4d3bc3e5
parent 60
b8fac2477fc8
child 69
a24c4490d9f2
equal deleted inserted replaced
66:e28b249b4422 67:afaa4d3bc3e5
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):

mercurial