10 from PyQt4.Qsci import QsciLexerMatlab |
10 from PyQt4.Qsci import QsciLexerMatlab |
11 |
11 |
12 from .Lexer import Lexer |
12 from .Lexer import Lexer |
13 |
13 |
14 |
14 |
15 class LexerMatlab(QsciLexerMatlab, Lexer): |
15 class LexerMatlab(Lexer, QsciLexerMatlab): |
16 """ |
16 """ |
17 Subclass to implement some additional lexer dependent methods. |
17 Subclass to implement some additional lexer dependent 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 QsciLexerMatlab.__init__(self, parent) |
26 Lexer.__init__(self) |
26 Lexer.__init__(self) |
27 |
27 |
28 self.commentString = "%~" |
28 self.commentString = "%~" |
29 |
29 |
30 def isCommentStyle(self, style): |
30 def isCommentStyle(self, style): |