11 |
11 |
12 from .Lexer import Lexer |
12 from .Lexer import Lexer |
13 import Preferences |
13 import Preferences |
14 |
14 |
15 |
15 |
16 class LexerPostScript(QsciLexerPostScript, Lexer): |
16 class LexerPostScript(Lexer, QsciLexerPostScript): |
17 """ |
17 """ |
18 Subclass to implement some additional lexer dependant methods. |
18 Subclass to implement some additional lexer dependant methods. |
19 """ |
19 """ |
20 def __init__(self, parent=None): |
20 def __init__(self, parent=None): |
21 """ |
21 """ |
22 Constructor |
22 Constructor |
23 |
23 |
24 @param parent parent widget of this lexer |
24 @param parent parent widget of this lexer |
25 """ |
25 """ |
26 super().__init__(parent) |
26 QsciLexerPostScript.__init__(self, parent) |
27 Lexer.__init__(self) |
27 Lexer.__init__(self) |
28 |
28 |
29 self.commentString = "%" |
29 self.commentString = "%" |
30 |
30 |
31 def initProperties(self): |
31 def initProperties(self): |