121 |
123 |
122 def isCommentStyle(self, style): |
124 def isCommentStyle(self, style): |
123 """ |
125 """ |
124 Public method to check, if a style is a comment style. |
126 Public method to check, if a style is a comment style. |
125 |
127 |
|
128 @param style style to check (integer) |
126 @return flag indicating a comment style (boolean) |
129 @return flag indicating a comment style (boolean) |
127 """ |
130 """ |
128 return style in [QsciLexerPython.Comment, |
131 return style in [QsciLexerPython.Comment, |
129 QsciLexerPython.CommentBlock] |
132 QsciLexerPython.CommentBlock] |
130 |
133 |
131 def isStringStyle(self, style): |
134 def isStringStyle(self, style): |
132 """ |
135 """ |
133 Public method to check, if a style is a string style. |
136 Public method to check, if a style is a string style. |
134 |
137 |
|
138 @param style style to check (integer) |
135 @return flag indicating a string style (boolean) |
139 @return flag indicating a string style (boolean) |
136 """ |
140 """ |
137 return style in [QsciLexerPython.DoubleQuotedString, |
141 return style in [QsciLexerPython.DoubleQuotedString, |
138 QsciLexerPython.SingleQuotedString, |
142 QsciLexerPython.SingleQuotedString, |
139 QsciLexerPython.TripleDoubleQuotedString, |
143 QsciLexerPython.TripleDoubleQuotedString, |