43 |
43 |
44 def isCommentStyle(self, style): |
44 def isCommentStyle(self, style): |
45 """ |
45 """ |
46 Public method to check, if a style is a comment style. |
46 Public method to check, if a style is a comment style. |
47 |
47 |
|
48 @param style style to check (integer) |
48 @return flag indicating a comment style (boolean) |
49 @return flag indicating a comment style (boolean) |
49 """ |
50 """ |
50 return style in [QsciLexerVHDL.Comment, |
51 return style in [QsciLexerVHDL.Comment, |
51 QsciLexerVHDL.CommentLine] |
52 QsciLexerVHDL.CommentLine] |
52 |
53 |
53 def isStringStyle(self, style): |
54 def isStringStyle(self, style): |
54 """ |
55 """ |
55 Public method to check, if a style is a string style. |
56 Public method to check, if a style is a string style. |
56 |
57 |
|
58 @param style style to check (integer) |
57 @return flag indicating a string style (boolean) |
59 @return flag indicating a string style (boolean) |
58 """ |
60 """ |
59 return style in [QsciLexerVHDL.String, |
61 return style in [QsciLexerVHDL.String, |
60 QsciLexerVHDL.UnclosedString] |
62 QsciLexerVHDL.UnclosedString] |
61 |
63 |