13 |
13 |
14 from .Lexer import Lexer |
14 from .Lexer import Lexer |
15 import Preferences |
15 import Preferences |
16 |
16 |
17 |
17 |
18 class LexerCPP(QsciLexerCPP, Lexer): |
18 class LexerCPP(Lexer, QsciLexerCPP): |
19 """ |
19 """ |
20 Subclass to implement some additional lexer dependant methods. |
20 Subclass to implement some additional lexer dependant methods. |
21 """ |
21 """ |
22 def __init__(self, parent=None, caseInsensitiveKeywords=False): |
22 def __init__(self, parent=None, caseInsensitiveKeywords=False): |
23 """ |
23 """ |
25 |
25 |
26 @param parent parent widget of this lexer |
26 @param parent parent widget of this lexer |
27 @param caseInsensitiveKeywords flag indicating keywords are case |
27 @param caseInsensitiveKeywords flag indicating keywords are case |
28 insensitive (boolean) |
28 insensitive (boolean) |
29 """ |
29 """ |
30 super(LexerCPP, self).__init__(parent, caseInsensitiveKeywords) |
30 QsciLexerCPP.__init__(self, parent, caseInsensitiveKeywords) |
31 Lexer.__init__(self) |
31 Lexer.__init__(self) |
32 |
32 |
33 self.commentString = "//" |
33 self.commentString = "//" |
34 self.streamCommentString = { |
34 self.streamCommentString = { |
35 'start': '/* ', |
35 'start': '/* ', |