QScintilla/Lexers/LexerBash.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2965
d133c7edd88a
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
39 39
40 def isCommentStyle(self, style): 40 def isCommentStyle(self, style):
41 """ 41 """
42 Public method to check, if a style is a comment style. 42 Public method to check, if a style is a comment style.
43 43
44 @param style style to check (integer)
44 @return flag indicating a comment style (boolean) 45 @return flag indicating a comment style (boolean)
45 """ 46 """
46 return style in [QsciLexerBash.Comment] 47 return style in [QsciLexerBash.Comment]
47 48
48 def isStringStyle(self, style): 49 def isStringStyle(self, style):
49 """ 50 """
50 Public method to check, if a style is a string style. 51 Public method to check, if a style is a string style.
51 52
53 @param style style to check (integer)
52 @return flag indicating a string style (boolean) 54 @return flag indicating a string style (boolean)
53 """ 55 """
54 return style in [QsciLexerBash.DoubleQuotedString, 56 return style in [QsciLexerBash.DoubleQuotedString,
55 QsciLexerBash.SingleQuotedString, 57 QsciLexerBash.SingleQuotedString,
56 QsciLexerBash.SingleQuotedHereDocument] 58 QsciLexerBash.SingleQuotedHereDocument]

eric ide

mercurial