43 @return flag indicating a comment style |
43 @return flag indicating a comment style |
44 @rtype bool |
44 @rtype bool |
45 """ |
45 """ |
46 return style in [QsciLexerBatch.Comment] |
46 return style in [QsciLexerBatch.Comment] |
47 |
47 |
48 def isStringStyle(self, style): # noqa: U100 |
48 def isStringStyle(self, _style): |
49 """ |
49 """ |
50 Public method to check, if a style is a string style. |
50 Public method to check, if a style is a string style. |
51 |
51 |
52 @param style style to check |
52 @param _style style to check (unused) |
53 @type int |
53 @type int |
54 @return flag indicating a string style |
54 @return flag indicating a string style |
55 @rtype bool |
55 @rtype bool |
56 """ |
56 """ |
57 return False |
57 return False |
70 |
70 |
71 def createLexer(variant="", parent=None): # noqa: U100 |
71 def createLexer(variant="", parent=None): # noqa: U100 |
72 """ |
72 """ |
73 Function to instantiate a lexer object. |
73 Function to instantiate a lexer object. |
74 |
74 |
75 @param variant name of the language variant |
75 @param variant name of the language variant (unused) |
76 @type str |
76 @type str |
77 @param parent parent widget of this lexer |
77 @param parent parent widget of this lexer |
78 @type QObject |
78 @type QObject |
79 @return instantiated lexer object |
79 @return instantiated lexer object |
80 @rtype LexerBatch |
80 @rtype LexerBatch |