QScintilla/Lexers/LexerCPP.py

branch
Py2 comp.
changeset 3515
1b8381afe38f
parent 3178
f25fc1364c88
parent 3462
6d6e7334a787
child 3539
0c2dc1446ebf
equal deleted inserted replaced
3506:d85fadb263a0 3515:1b8381afe38f
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': '/* ',

eric ide

mercurial