11 |
11 |
12 from .Lexer import Lexer |
12 from .Lexer import Lexer |
13 import Preferences |
13 import Preferences |
14 |
14 |
15 |
15 |
16 class LexerCPP(QsciLexerCPP, Lexer): |
16 class LexerCPP(Lexer, QsciLexerCPP): |
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, caseInsensitiveKeywords=False): |
20 def __init__(self, parent=None, caseInsensitiveKeywords=False): |
21 """ |
21 """ |
23 |
23 |
24 @param parent parent widget of this lexer |
24 @param parent parent widget of this lexer |
25 @param caseInsensitiveKeywords flag indicating keywords are case |
25 @param caseInsensitiveKeywords flag indicating keywords are case |
26 insensitive (boolean) |
26 insensitive (boolean) |
27 """ |
27 """ |
28 super().__init__(parent, caseInsensitiveKeywords) |
28 QsciLexerCPP.__init__(self, parent, caseInsensitiveKeywords) |
29 Lexer.__init__(self) |
29 Lexer.__init__(self) |
30 |
30 |
31 self.commentString = "//" |
31 self.commentString = "//" |
32 self.streamCommentString = { |
32 self.streamCommentString = { |
33 'start': '/* ', |
33 'start': '/* ', |