52 |
52 |
53 def isCommentStyle(self, style): |
53 def isCommentStyle(self, style): |
54 """ |
54 """ |
55 Public method to check, if a style is a comment style. |
55 Public method to check, if a style is a comment style. |
56 |
56 |
|
57 @param style style to check (integer) |
57 @return flag indicating a comment style (boolean) |
58 @return flag indicating a comment style (boolean) |
58 """ |
59 """ |
59 return style in [QsciLexerCSS.Comment] |
60 return style in [QsciLexerCSS.Comment] |
60 |
61 |
61 def isStringStyle(self, style): |
62 def isStringStyle(self, style): |
62 """ |
63 """ |
63 Public method to check, if a style is a string style. |
64 Public method to check, if a style is a string style. |
64 |
65 |
|
66 @param style style to check (integer) |
65 @return flag indicating a string style (boolean) |
67 @return flag indicating a string style (boolean) |
66 """ |
68 """ |
67 return style in [QsciLexerCSS.DoubleQuotedString, |
69 return style in [QsciLexerCSS.DoubleQuotedString, |
68 QsciLexerCSS.SingleQuotedString] |
70 QsciLexerCSS.SingleQuotedString] |
69 |
71 |