QScintilla/Lexers/LexerMatlab.py

changeset 2965
d133c7edd88a
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
29 29
30 def isCommentStyle(self, style): 30 def isCommentStyle(self, style):
31 """ 31 """
32 Public method to check, if a style is a comment style. 32 Public method to check, if a style is a comment style.
33 33
34 @param style style to check (integer)
34 @return flag indicating a comment style (boolean) 35 @return flag indicating a comment style (boolean)
35 """ 36 """
36 return style in [QsciLexerMatlab.Comment] 37 return style in [QsciLexerMatlab.Comment]
37 38
38 def isStringStyle(self, style): 39 def isStringStyle(self, style):
39 """ 40 """
40 Public method to check, if a style is a string style. 41 Public method to check, if a style is a string style.
41 42
43 @param style style to check (integer)
42 @return flag indicating a string style (boolean) 44 @return flag indicating a string style (boolean)
43 """ 45 """
44 return style in [QsciLexerMatlab.DoubleQuotedString, 46 return style in [QsciLexerMatlab.DoubleQuotedString,
45 QsciLexerMatlab.SingleQuotedString] 47 QsciLexerMatlab.SingleQuotedString]
46 48

eric ide

mercurial