10 from PyQt4.Qsci import QsciLexerDiff |
10 from PyQt4.Qsci import QsciLexerDiff |
11 |
11 |
12 from .Lexer import Lexer |
12 from .Lexer import Lexer |
13 |
13 |
14 |
14 |
15 class LexerDiff(QsciLexerDiff, Lexer): |
15 class LexerDiff(Lexer, QsciLexerDiff): |
16 """ |
16 """ |
17 Subclass to implement some additional lexer dependant methods. |
17 Subclass to implement some additional lexer dependant methods. |
18 """ |
18 """ |
19 def __init__(self, parent=None): |
19 def __init__(self, parent=None): |
20 """ |
20 """ |
21 Constructor |
21 Constructor |
22 |
22 |
23 @param parent parent widget of this lexer |
23 @param parent parent widget of this lexer |
24 """ |
24 """ |
25 super().__init__(parent) |
25 QsciLexerDiff.__init__(self, parent) |
26 Lexer.__init__(self) |
26 Lexer.__init__(self) |
27 |
27 |
28 def isCommentStyle(self, style): |
28 def isCommentStyle(self, style): |
29 """ |
29 """ |
30 Public method to check, if a style is a comment style. |
30 Public method to check, if a style is a comment style. |