61 |
61 |
62 def isCommentStyle(self, style): |
62 def isCommentStyle(self, style): |
63 """ |
63 """ |
64 Public method to check, if a style is a comment style. |
64 Public method to check, if a style is a comment style. |
65 |
65 |
|
66 @param style style to check (integer) |
66 @return flag indicating a comment style (boolean) |
67 @return flag indicating a comment style (boolean) |
67 """ |
68 """ |
68 return style in [QsciLexerD.Comment, |
69 return style in [QsciLexerD.Comment, |
69 QsciLexerD.CommentDoc, |
70 QsciLexerD.CommentDoc, |
70 QsciLexerD.CommentLine, |
71 QsciLexerD.CommentLine, |
73 |
74 |
74 def isStringStyle(self, style): |
75 def isStringStyle(self, style): |
75 """ |
76 """ |
76 Public method to check, if a style is a string style. |
77 Public method to check, if a style is a string style. |
77 |
78 |
|
79 @param style style to check (integer) |
78 @return flag indicating a string style (boolean) |
80 @return flag indicating a string style (boolean) |
79 """ |
81 """ |
80 return style in [QsciLexerD.String, |
82 return style in [QsciLexerD.String, |
81 QsciLexerD.UnclosedString] |
83 QsciLexerD.UnclosedString] |
82 |
84 |