src/eric7/QScintilla/Lexers/LexerBash.py

branch
eric7
changeset 10431
64157aeb0312
parent 10069
435cc5875135
child 10439
21c28b0f9e41
equal deleted inserted replaced
10430:e440aaf179ce 10431:64157aeb0312
22 def __init__(self, parent=None): 22 def __init__(self, parent=None):
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param parent parent widget of this lexer 26 @param parent parent widget of this lexer
27 @type QWidget
27 """ 28 """
28 QsciLexerBash.__init__(self, parent) 29 QsciLexerBash.__init__(self, parent)
29 Lexer.__init__(self) 30 Lexer.__init__(self)
30 31
31 self.commentString = "#" 32 self.commentString = "#"
43 44
44 def isCommentStyle(self, style): 45 def isCommentStyle(self, style):
45 """ 46 """
46 Public method to check, if a style is a comment style. 47 Public method to check, if a style is a comment style.
47 48
48 @param style style to check (integer) 49 @param style style to check
49 @return flag indicating a comment style (boolean) 50 @type int
51 @return flag indicating a comment style
52 @rtype bool
50 """ 53 """
51 return style in [QsciLexerBash.Comment] 54 return style in [QsciLexerBash.Comment]
52 55
53 def isStringStyle(self, style): 56 def isStringStyle(self, style):
54 """ 57 """
55 Public method to check, if a style is a string style. 58 Public method to check, if a style is a string style.
56 59
57 @param style style to check (integer) 60 @param style style to check
58 @return flag indicating a string style (boolean) 61 @type int
62 @return flag indicating a string style
63 @rtype bool
59 """ 64 """
60 return style in [ 65 return style in [
61 QsciLexerBash.DoubleQuotedString, 66 QsciLexerBash.DoubleQuotedString,
62 QsciLexerBash.SingleQuotedString, 67 QsciLexerBash.SingleQuotedString,
63 QsciLexerBash.SingleQuotedHereDocument, 68 QsciLexerBash.SingleQuotedHereDocument,
65 70
66 def defaultKeywords(self, kwSet): 71 def defaultKeywords(self, kwSet):
67 """ 72 """
68 Public method to get the default keywords. 73 Public method to get the default keywords.
69 74
70 @param kwSet number of the keyword set (integer) 75 @param kwSet number of the keyword set
71 @return string giving the keywords (string) or None 76 @type int
77 @return string giving the keywords or None
78 @rtype str
72 """ 79 """
73 return QsciLexerBash.keywords(self, kwSet) 80 return QsciLexerBash.keywords(self, kwSet)
74 81
75 82
76 def createLexer(variant="", parent=None): # noqa: U100 83 def createLexer(variant="", parent=None): # noqa: U100

eric ide

mercurial