48 |
48 |
49 def isCommentStyle(self, style): |
49 def isCommentStyle(self, style): |
50 """ |
50 """ |
51 Public method to check, if a style is a comment style. |
51 Public method to check, if a style is a comment style. |
52 |
52 |
|
53 @param style style to check (integer) |
53 @return flag indicating a comment style (boolean) |
54 @return flag indicating a comment style (boolean) |
54 """ |
55 """ |
55 return style in [QsciLexerRuby.Comment] |
56 return style in [QsciLexerRuby.Comment] |
56 |
57 |
57 def isStringStyle(self, style): |
58 def isStringStyle(self, style): |
58 """ |
59 """ |
59 Public method to check, if a style is a string style. |
60 Public method to check, if a style is a string style. |
60 |
61 |
|
62 @param style style to check (integer) |
61 @return flag indicating a string style (boolean) |
63 @return flag indicating a string style (boolean) |
62 """ |
64 """ |
63 return style in [QsciLexerRuby.DoubleQuotedString, |
65 return style in [QsciLexerRuby.DoubleQuotedString, |
64 QsciLexerRuby.HereDocument, |
66 QsciLexerRuby.HereDocument, |
65 QsciLexerRuby.PercentStringQ, |
67 QsciLexerRuby.PercentStringQ, |