E5XML/HighlightingStylesReader.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 2525
8b507a9a2d40
parent 3022
57179e4cdadd
child 3145
a9de05d4a22f
equal deleted inserted replaced
3057:10516539f238 3058:0a02c433f52d
41 """ 41 """
42 while not self.atEnd(): 42 while not self.atEnd():
43 self.readNext() 43 self.readNext()
44 if self.isStartElement(): 44 if self.isStartElement():
45 if self.name() == "HighlightingStyles": 45 if self.name() == "HighlightingStyles":
46 self.version = self.attribute("version", 46 self.version = self.attribute(
47 "version",
47 highlightingStylesFileFormatVersion) 48 highlightingStylesFileFormatVersion)
48 if self.version not in self.supportedVersions: 49 if self.version not in self.supportedVersions:
49 self.raiseUnsupportedFormatVersion(self.version) 50 self.raiseUnsupportedFormatVersion(self.version)
50 elif self.name() == "Lexer": 51 elif self.name() == "Lexer":
51 self.__readLexer() 52 self.__readLexer()

eric ide

mercurial