39 |
39 |
40 def isCommentStyle(self, style): |
40 def isCommentStyle(self, style): |
41 """ |
41 """ |
42 Public method to check, if a style is a comment style. |
42 Public method to check, if a style is a comment style. |
43 |
43 |
|
44 @param style style to check (integer) |
44 @return flag indicating a comment style (boolean) |
45 @return flag indicating a comment style (boolean) |
45 """ |
46 """ |
46 return style in [QsciLexerBash.Comment] |
47 return style in [QsciLexerBash.Comment] |
47 |
48 |
48 def isStringStyle(self, style): |
49 def isStringStyle(self, style): |
49 """ |
50 """ |
50 Public method to check, if a style is a string style. |
51 Public method to check, if a style is a string style. |
51 |
52 |
|
53 @param style style to check (integer) |
52 @return flag indicating a string style (boolean) |
54 @return flag indicating a string style (boolean) |
53 """ |
55 """ |
54 return style in [QsciLexerBash.DoubleQuotedString, |
56 return style in [QsciLexerBash.DoubleQuotedString, |
55 QsciLexerBash.SingleQuotedString, |
57 QsciLexerBash.SingleQuotedString, |
56 QsciLexerBash.SingleQuotedHereDocument] |
58 QsciLexerBash.SingleQuotedHereDocument] |