src/eric7/QScintilla/Lexers/LexerMakefile.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9484
d2eb8f0a5bf0
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
14 14
15 class LexerMakefile(Lexer, QsciLexerMakefile): 15 class LexerMakefile(Lexer, QsciLexerMakefile):
16 """ 16 """
17 Subclass to implement some additional lexer dependant methods. 17 Subclass to implement some additional lexer dependant methods.
18 """ 18 """
19
19 def __init__(self, parent=None): 20 def __init__(self, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param parent parent widget of this lexer 24 @param parent parent widget of this lexer
24 """ 25 """
25 QsciLexerMakefile.__init__(self, parent) 26 QsciLexerMakefile.__init__(self, parent)
26 Lexer.__init__(self) 27 Lexer.__init__(self)
27 28
28 self.commentString = "#" 29 self.commentString = "#"
29 self._alwaysKeepTabs = True 30 self._alwaysKeepTabs = True
30 31
31 self.keywordSetDescriptions = [] 32 self.keywordSetDescriptions = []
32 33
33 def isCommentStyle(self, style): 34 def isCommentStyle(self, style):
34 """ 35 """
35 Public method to check, if a style is a comment style. 36 Public method to check, if a style is a comment style.
36 37
37 @param style style to check (integer) 38 @param style style to check (integer)
38 @return flag indicating a comment style (boolean) 39 @return flag indicating a comment style (boolean)
39 """ 40 """
40 return style in [QsciLexerMakefile.Comment] 41 return style in [QsciLexerMakefile.Comment]
41 42
42 def isStringStyle(self, style): 43 def isStringStyle(self, style):
43 """ 44 """
44 Public method to check, if a style is a string style. 45 Public method to check, if a style is a string style.
45 46
46 @param style style to check (integer) 47 @param style style to check (integer)
47 @return flag indicating a string style (boolean) 48 @return flag indicating a string style (boolean)
48 """ 49 """
49 return False 50 return False
50 51
51 def defaultKeywords(self, kwSet): 52 def defaultKeywords(self, kwSet):
52 """ 53 """
53 Public method to get the default keywords. 54 Public method to get the default keywords.
54 55
55 @param kwSet number of the keyword set (integer) 56 @param kwSet number of the keyword set (integer)
56 @return string giving the keywords (string) or None 57 @return string giving the keywords (string) or None
57 """ 58 """
58 return QsciLexerMakefile.keywords(self, kwSet) 59 return QsciLexerMakefile.keywords(self, kwSet)

eric ide

mercurial