40 @param style style to check (integer) |
40 @param style style to check (integer) |
41 @return flag indicating a comment style (boolean) |
41 @return flag indicating a comment style (boolean) |
42 """ |
42 """ |
43 return style in [QsciLexerBatch.Comment] |
43 return style in [QsciLexerBatch.Comment] |
44 |
44 |
45 def isStringStyle(self, style): |
45 def isStringStyle(self, style): # noqa: U100 |
46 """ |
46 """ |
47 Public method to check, if a style is a string style. |
47 Public method to check, if a style is a string style. |
48 |
48 |
49 @param style style to check (integer) |
49 @param style style to check (integer) |
50 @return flag indicating a string style (boolean) |
50 @return flag indicating a string style (boolean) |
59 @return string giving the keywords (string) or None |
59 @return string giving the keywords (string) or None |
60 """ |
60 """ |
61 return QsciLexerBatch.keywords(self, kwSet) |
61 return QsciLexerBatch.keywords(self, kwSet) |
62 |
62 |
63 |
63 |
64 def createLexer(variant="", parent=None): |
64 def createLexer(variant="", parent=None): # noqa: U100 |
65 """ |
65 """ |
66 Function to instantiate a lexer object. |
66 Function to instantiate a lexer object. |
67 |
67 |
68 @param variant name of the language variant |
68 @param variant name of the language variant |
69 @type str |
69 @type str |