48 |
48 |
49 def isCommentStyle(self, style): |
49 def isCommentStyle(self, style): |
50 """ |
50 """ |
51 Public method to check, if a style is a comment style. |
51 Public method to check, if a style is a comment style. |
52 |
52 |
|
53 @param style style to check (integer) |
53 @return flag indicating a comment style (boolean) |
54 @return flag indicating a comment style (boolean) |
54 """ |
55 """ |
55 return style in [QsciLexerLua.Comment, |
56 return style in [QsciLexerLua.Comment, |
56 QsciLexerLua.LineComment] |
57 QsciLexerLua.LineComment] |
57 |
58 |
58 def isStringStyle(self, style): |
59 def isStringStyle(self, style): |
59 """ |
60 """ |
60 Public method to check, if a style is a string style. |
61 Public method to check, if a style is a string style. |
61 |
62 |
|
63 @param style style to check (integer) |
62 @return flag indicating a string style (boolean) |
64 @return flag indicating a string style (boolean) |
63 """ |
65 """ |
64 return style in [QsciLexerLua.String, |
66 return style in [QsciLexerLua.String, |
65 QsciLexerLua.LiteralString, |
67 QsciLexerLua.LiteralString, |
66 QsciLexerLua.UnclosedString] |
68 QsciLexerLua.UnclosedString] |