56 |
56 |
57 def isCommentStyle(self, style): |
57 def isCommentStyle(self, style): |
58 """ |
58 """ |
59 Public method to check, if a style is a comment style. |
59 Public method to check, if a style is a comment style. |
60 |
60 |
|
61 @param style style to check (integer) |
61 @return flag indicating a comment style (boolean) |
62 @return flag indicating a comment style (boolean) |
62 """ |
63 """ |
63 return style in [QsciLexerJavaScript.Comment, |
64 return style in [QsciLexerJavaScript.Comment, |
64 QsciLexerJavaScript.CommentDoc, |
65 QsciLexerJavaScript.CommentDoc, |
65 QsciLexerJavaScript.CommentLine, |
66 QsciLexerJavaScript.CommentLine, |
67 |
68 |
68 def isStringStyle(self, style): |
69 def isStringStyle(self, style): |
69 """ |
70 """ |
70 Public method to check, if a style is a string style. |
71 Public method to check, if a style is a string style. |
71 |
72 |
|
73 @param style style to check (integer) |
72 @return flag indicating a string style (boolean) |
74 @return flag indicating a string style (boolean) |
73 """ |
75 """ |
74 return style in [QsciLexerJavaScript.DoubleQuotedString, |
76 return style in [QsciLexerJavaScript.DoubleQuotedString, |
75 QsciLexerJavaScript.SingleQuotedString, |
77 QsciLexerJavaScript.SingleQuotedString, |
76 QsciLexerJavaScript.UnclosedString, |
78 QsciLexerJavaScript.UnclosedString, |