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 |