QScintilla/Lexers/LexerBash.py

changeset 2965
d133c7edd88a
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2964:84b65fb9e780 2965:d133c7edd88a
37 37
38 def isCommentStyle(self, style): 38 def isCommentStyle(self, style):
39 """ 39 """
40 Public method to check, if a style is a comment style. 40 Public method to check, if a style is a comment style.
41 41
42 @param style style to check (integer)
42 @return flag indicating a comment style (boolean) 43 @return flag indicating a comment style (boolean)
43 """ 44 """
44 return style in [QsciLexerBash.Comment] 45 return style in [QsciLexerBash.Comment]
45 46
46 def isStringStyle(self, style): 47 def isStringStyle(self, style):
47 """ 48 """
48 Public method to check, if a style is a string style. 49 Public method to check, if a style is a string style.
49 50
51 @param style style to check (integer)
50 @return flag indicating a string style (boolean) 52 @return flag indicating a string style (boolean)
51 """ 53 """
52 return style in [QsciLexerBash.DoubleQuotedString, 54 return style in [QsciLexerBash.DoubleQuotedString,
53 QsciLexerBash.SingleQuotedString, 55 QsciLexerBash.SingleQuotedString,
54 QsciLexerBash.SingleQuotedHereDocument] 56 QsciLexerBash.SingleQuotedHereDocument]

eric ide

mercurial