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