38 @return flag indicating a comment style |
38 @return flag indicating a comment style |
39 @rtype bool |
39 @rtype bool |
40 """ |
40 """ |
41 return style in [LexerDiff.Comment] |
41 return style in [LexerDiff.Comment] |
42 |
42 |
43 def isStringStyle(self, style): # noqa: U100 |
43 def isStringStyle(self, _style): |
44 """ |
44 """ |
45 Public method to check, if a style is a string style. |
45 Public method to check, if a style is a string style. |
46 |
46 |
47 @param style style to check |
47 @param _style style to check (unused) |
48 @type int |
48 @type int |
49 @return flag indicating a string style |
49 @return flag indicating a string style |
50 @rtype bool |
50 @rtype bool |
51 """ |
51 """ |
52 return False |
52 return False |
65 |
65 |
66 def createLexer(variant="", parent=None): # noqa: U100 |
66 def createLexer(variant="", parent=None): # noqa: U100 |
67 """ |
67 """ |
68 Function to instantiate a lexer object. |
68 Function to instantiate a lexer object. |
69 |
69 |
70 @param variant name of the language variant |
70 @param variant name of the language variant (unused) |
71 @type str |
71 @type str |
72 @param parent parent widget of this lexer |
72 @param parent parent widget of this lexer |
73 @type QObject |
73 @type QObject |
74 @return instantiated lexer object |
74 @return instantiated lexer object |
75 @rtype LexerDiff |
75 @rtype LexerDiff |