160 self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"][0]) |
160 self.writeBasics("VcsOtherData", self.pdata["VCSOTHERDATA"][0]) |
161 self.writeEndElement() |
161 self.writeEndElement() |
162 |
162 |
163 # do the filetype associations |
163 # do the filetype associations |
164 self.writeStartElement("FiletypeAssociations") |
164 self.writeStartElement("FiletypeAssociations") |
165 for pattern, filetype in list(self.pdata["FILETYPES"].items()): |
165 for pattern, filetype in sorted(self.pdata["FILETYPES"].items()): |
166 self.writeEmptyElement("FiletypeAssociation") |
166 self.writeEmptyElement("FiletypeAssociation") |
167 self.writeAttribute("pattern", pattern) |
167 self.writeAttribute("pattern", pattern) |
168 self.writeAttribute("type", filetype) |
168 self.writeAttribute("type", filetype) |
169 self.writeEndElement() |
169 self.writeEndElement() |
170 |
170 |
171 # do the lexer associations |
171 # do the lexer associations |
172 if self.pdata["LEXERASSOCS"]: |
172 if self.pdata["LEXERASSOCS"]: |
173 self.writeStartElement("LexerAssociations") |
173 self.writeStartElement("LexerAssociations") |
174 for pattern, lexer in list(self.pdata["LEXERASSOCS"].items()): |
174 for pattern, lexer in sorted(self.pdata["LEXERASSOCS"].items()): |
175 self.writeEmptyElement("LexerAssociation") |
175 self.writeEmptyElement("LexerAssociation") |
176 self.writeAttribute("pattern", pattern) |
176 self.writeAttribute("pattern", pattern) |
177 self.writeAttribute("lexer", lexer) |
177 self.writeAttribute("lexer", lexer) |
178 self.writeEndElement() |
178 self.writeEndElement() |
179 |
179 |