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