QScintilla/Lexers/LexerCSS.py

changeset 2965
d133c7edd88a
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
50 50
51 def isCommentStyle(self, style): 51 def isCommentStyle(self, style):
52 """ 52 """
53 Public method to check, if a style is a comment style. 53 Public method to check, if a style is a comment style.
54 54
55 @param style style to check (integer)
55 @return flag indicating a comment style (boolean) 56 @return flag indicating a comment style (boolean)
56 """ 57 """
57 return style in [QsciLexerCSS.Comment] 58 return style in [QsciLexerCSS.Comment]
58 59
59 def isStringStyle(self, style): 60 def isStringStyle(self, style):
60 """ 61 """
61 Public method to check, if a style is a string style. 62 Public method to check, if a style is a string style.
62 63
64 @param style style to check (integer)
63 @return flag indicating a string style (boolean) 65 @return flag indicating a string style (boolean)
64 """ 66 """
65 return style in [QsciLexerCSS.DoubleQuotedString, 67 return style in [QsciLexerCSS.DoubleQuotedString,
66 QsciLexerCSS.SingleQuotedString] 68 QsciLexerCSS.SingleQuotedString]
67 69

eric ide

mercurial