10 from PyQt4.Qsci import QsciLexerCMake |
10 from PyQt4.Qsci import QsciLexerCMake |
11 |
11 |
12 from .Lexer import Lexer |
12 from .Lexer import Lexer |
13 import Preferences |
13 import Preferences |
14 |
14 |
|
15 |
15 class LexerCMake(QsciLexerCMake, Lexer): |
16 class LexerCMake(QsciLexerCMake, Lexer): |
16 """ |
17 """ |
17 Subclass to implement some additional lexer dependant methods. |
18 Subclass to implement some additional lexer dependant methods. |
18 """ |
19 """ |
19 def __init__(self, parent=None): |
20 def __init__(self, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
51 |
52 |
52 def defaultKeywords(self, kwSet): |
53 def defaultKeywords(self, kwSet): |
53 """ |
54 """ |
54 Public method to get the default keywords. |
55 Public method to get the default keywords. |
55 |
56 |
56 @param kwSet number of the keyword set (integer) |
57 @param kwSet number of the keyword set (integer) |
57 @return string giving the keywords (string) or None |
58 @return string giving the keywords (string) or None |
58 """ |
59 """ |
59 return QsciLexerCMake.keywords(self, kwSet) |
60 return QsciLexerCMake.keywords(self, kwSet) |