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] |