56 |
56 |
57 def isCommentStyle(self, style): |
57 def isCommentStyle(self, style): |
58 """ |
58 """ |
59 Public method to check, if a style is a comment style. |
59 Public method to check, if a style is a comment style. |
60 |
60 |
|
61 @param style style to check (integer) |
61 @return flag indicating a comment style (boolean) |
62 @return flag indicating a comment style (boolean) |
62 """ |
63 """ |
63 return style in [QsciLexerCSharp.Comment, |
64 return style in [QsciLexerCSharp.Comment, |
64 QsciLexerCSharp.CommentDoc, |
65 QsciLexerCSharp.CommentDoc, |
65 QsciLexerCSharp.CommentLine, |
66 QsciLexerCSharp.CommentLine, |
67 |
68 |
68 def isStringStyle(self, style): |
69 def isStringStyle(self, style): |
69 """ |
70 """ |
70 Public method to check, if a style is a string style. |
71 Public method to check, if a style is a string style. |
71 |
72 |
|
73 @param style style to check (integer) |
72 @return flag indicating a string style (boolean) |
74 @return flag indicating a string style (boolean) |
73 """ |
75 """ |
74 return style in [QsciLexerCSharp.DoubleQuotedString, |
76 return style in [QsciLexerCSharp.DoubleQuotedString, |
75 QsciLexerCSharp.SingleQuotedString, |
77 QsciLexerCSharp.SingleQuotedString, |
76 QsciLexerCSharp.UnclosedString, |
78 QsciLexerCSharp.UnclosedString, |