QScintilla/Lexers/LexerJavaScript.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2965
d133c7edd88a
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
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,

eric ide

mercurial