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