QScintilla/Lexers/LexerFortran.py

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

eric ide

mercurial