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