QScintilla/Lexers/LexerCSS.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2965
d133c7edd88a
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
52 52
53 def isCommentStyle(self, style): 53 def isCommentStyle(self, style):
54 """ 54 """
55 Public method to check, if a style is a comment style. 55 Public method to check, if a style is a comment style.
56 56
57 @param style style to check (integer)
57 @return flag indicating a comment style (boolean) 58 @return flag indicating a comment style (boolean)
58 """ 59 """
59 return style in [QsciLexerCSS.Comment] 60 return style in [QsciLexerCSS.Comment]
60 61
61 def isStringStyle(self, style): 62 def isStringStyle(self, style):
62 """ 63 """
63 Public method to check, if a style is a string style. 64 Public method to check, if a style is a string style.
64 65
66 @param style style to check (integer)
65 @return flag indicating a string style (boolean) 67 @return flag indicating a string style (boolean)
66 """ 68 """
67 return style in [QsciLexerCSS.DoubleQuotedString, 69 return style in [QsciLexerCSS.DoubleQuotedString,
68 QsciLexerCSS.SingleQuotedString] 70 QsciLexerCSS.SingleQuotedString]
69 71

eric ide

mercurial