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