QScintilla/Lexers/LexerJavaScript.py

changeset 2965
d133c7edd88a
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
54 54
55 def isCommentStyle(self, style): 55 def isCommentStyle(self, style):
56 """ 56 """
57 Public method to check, if a style is a comment style. 57 Public method to check, if a style is a comment style.
58 58
59 @param style style to check (integer)
59 @return flag indicating a comment style (boolean) 60 @return flag indicating a comment style (boolean)
60 """ 61 """
61 return style in [QsciLexerJavaScript.Comment, 62 return style in [QsciLexerJavaScript.Comment,
62 QsciLexerJavaScript.CommentDoc, 63 QsciLexerJavaScript.CommentDoc,
63 QsciLexerJavaScript.CommentLine, 64 QsciLexerJavaScript.CommentLine,
65 66
66 def isStringStyle(self, style): 67 def isStringStyle(self, style):
67 """ 68 """
68 Public method to check, if a style is a string style. 69 Public method to check, if a style is a string style.
69 70
71 @param style style to check (integer)
70 @return flag indicating a string style (boolean) 72 @return flag indicating a string style (boolean)
71 """ 73 """
72 return style in [QsciLexerJavaScript.DoubleQuotedString, 74 return style in [QsciLexerJavaScript.DoubleQuotedString,
73 QsciLexerJavaScript.SingleQuotedString, 75 QsciLexerJavaScript.SingleQuotedString,
74 QsciLexerJavaScript.UnclosedString, 76 QsciLexerJavaScript.UnclosedString,

eric ide

mercurial