QScintilla/Lexers/LexerXML.py

changeset 2965
d133c7edd88a
parent 2302
f29e9405c851
child 3011
18292228c724
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
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,

eric ide

mercurial