29 |
29 |
30 def isCommentStyle(self, style): |
30 def isCommentStyle(self, style): |
31 """ |
31 """ |
32 Public method to check, if a style is a comment style. |
32 Public method to check, if a style is a comment style. |
33 |
33 |
|
34 @param style style to check (integer) |
34 @return flag indicating a comment style (boolean) |
35 @return flag indicating a comment style (boolean) |
35 """ |
36 """ |
36 return style in [QsciLexerMatlab.Comment] |
37 return style in [QsciLexerMatlab.Comment] |
37 |
38 |
38 def isStringStyle(self, style): |
39 def isStringStyle(self, style): |
39 """ |
40 """ |
40 Public method to check, if a style is a string style. |
41 Public method to check, if a style is a string style. |
41 |
42 |
|
43 @param style style to check (integer) |
42 @return flag indicating a string style (boolean) |
44 @return flag indicating a string style (boolean) |
43 """ |
45 """ |
44 return style in [QsciLexerMatlab.DoubleQuotedString, |
46 return style in [QsciLexerMatlab.DoubleQuotedString, |
45 QsciLexerMatlab.SingleQuotedString] |
47 QsciLexerMatlab.SingleQuotedString] |
46 |
48 |