48 |
48 |
49 def isCommentStyle(self, style): |
49 def isCommentStyle(self, style): |
50 """ |
50 """ |
51 Public method to check, if a style is a comment style. |
51 Public method to check, if a style is a comment style. |
52 |
52 |
|
53 @param style style to check (integer) |
53 @return flag indicating a comment style (boolean) |
54 @return flag indicating a comment style (boolean) |
54 """ |
55 """ |
55 return style in [QsciLexerXML.HTMLComment, |
56 return style in [QsciLexerXML.HTMLComment, |
56 QsciLexerXML.ASPXCComment, |
57 QsciLexerXML.ASPXCComment, |
57 QsciLexerXML.SGMLComment, |
58 QsciLexerXML.SGMLComment, |
70 |
71 |
71 def isStringStyle(self, style): |
72 def isStringStyle(self, style): |
72 """ |
73 """ |
73 Public method to check, if a style is a string style. |
74 Public method to check, if a style is a string style. |
74 |
75 |
|
76 @param style style to check (integer) |
75 @return flag indicating a string style (boolean) |
77 @return flag indicating a string style (boolean) |
76 """ |
78 """ |
77 return style in [QsciLexerXML.HTMLDoubleQuotedString, |
79 return style in [QsciLexerXML.HTMLDoubleQuotedString, |
78 QsciLexerXML.HTMLSingleQuotedString, |
80 QsciLexerXML.HTMLSingleQuotedString, |
79 QsciLexerXML.SGMLDoubleQuotedString, |
81 QsciLexerXML.SGMLDoubleQuotedString, |