src/eric7/QScintilla/Lexers/LexerMatlab.py

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

eric ide

mercurial