QScintilla/Lexers/LexerMatlab.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2965
d133c7edd88a
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
31 31
32 def isCommentStyle(self, style): 32 def isCommentStyle(self, style):
33 """ 33 """
34 Public method to check, if a style is a comment style. 34 Public method to check, if a style is a comment style.
35 35
36 @param style style to check (integer)
36 @return flag indicating a comment style (boolean) 37 @return flag indicating a comment style (boolean)
37 """ 38 """
38 return style in [QsciLexerMatlab.Comment] 39 return style in [QsciLexerMatlab.Comment]
39 40
40 def isStringStyle(self, style): 41 def isStringStyle(self, style):
41 """ 42 """
42 Public method to check, if a style is a string style. 43 Public method to check, if a style is a string style.
43 44
45 @param style style to check (integer)
44 @return flag indicating a string style (boolean) 46 @return flag indicating a string style (boolean)
45 """ 47 """
46 return style in [QsciLexerMatlab.DoubleQuotedString, 48 return style in [QsciLexerMatlab.DoubleQuotedString,
47 QsciLexerMatlab.SingleQuotedString] 49 QsciLexerMatlab.SingleQuotedString]
48 50

eric ide

mercurial