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