src/eric7/EricXML/HighlightingStylesReader.py

branch
eric7
changeset 10423
299802979277
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10422:e28b89693f37 10423:299802979277
21 21
22 def __init__(self, device, lexers): 22 def __init__(self, device, lexers):
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param device reference to the I/O device to read from (QIODevice) 26 @param device reference to the I/O device to read from
27 @type QIODevice
27 @param lexers dictionary of lexer objects for which to import the 28 @param lexers dictionary of lexer objects for which to import the
28 styles 29 styles
30 @type dict
29 """ 31 """
30 XMLStreamReaderBase.__init__(self, device) 32 XMLStreamReaderBase.__init__(self, device)
31 33
32 self.lexers = lexers 34 self.lexers = lexers
33 35
87 def __readStyle(self, lexer): 89 def __readStyle(self, lexer):
88 """ 90 """
89 Private method to read the style info. 91 Private method to read the style info.
90 92
91 @param lexer reference to the lexer object 93 @param lexer reference to the lexer object
94 @type Lexer
92 """ 95 """
93 if lexer is not None: 96 if lexer is not None:
94 style = self.attribute("style") 97 style = self.attribute("style")
95 if style: 98 if style:
96 style = int(style) 99 style = int(style)

eric ide

mercurial