QScintilla/Lexers/LexerD.py

changeset 2965
d133c7edd88a
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
61 61
62 def isCommentStyle(self, style): 62 def isCommentStyle(self, style):
63 """ 63 """
64 Public method to check, if a style is a comment style. 64 Public method to check, if a style is a comment style.
65 65
66 @param style style to check (integer)
66 @return flag indicating a comment style (boolean) 67 @return flag indicating a comment style (boolean)
67 """ 68 """
68 return style in [QsciLexerD.Comment, 69 return style in [QsciLexerD.Comment,
69 QsciLexerD.CommentDoc, 70 QsciLexerD.CommentDoc,
70 QsciLexerD.CommentLine, 71 QsciLexerD.CommentLine,
73 74
74 def isStringStyle(self, style): 75 def isStringStyle(self, style):
75 """ 76 """
76 Public method to check, if a style is a string style. 77 Public method to check, if a style is a string style.
77 78
79 @param style style to check (integer)
78 @return flag indicating a string style (boolean) 80 @return flag indicating a string style (boolean)
79 """ 81 """
80 return style in [QsciLexerD.String, 82 return style in [QsciLexerD.String,
81 QsciLexerD.UnclosedString] 83 QsciLexerD.UnclosedString]
82 84

eric ide

mercurial