64 |
64 |
65 @param kwSet number of the keyword set (integer) |
65 @param kwSet number of the keyword set (integer) |
66 @return string giving the keywords (string) or None |
66 @return string giving the keywords (string) or None |
67 """ |
67 """ |
68 return QsciLexerYAML.keywords(self, kwSet) |
68 return QsciLexerYAML.keywords(self, kwSet) |
|
69 |
|
70 |
|
71 def createLexer(variant="", parent=None): |
|
72 """ |
|
73 Function to instantiate a lexer object. |
|
74 |
|
75 @param variant name of the language variant |
|
76 @type str |
|
77 @param parent parent widget of this lexer |
|
78 @type QObject |
|
79 @return instantiated lexer object |
|
80 @rtype LexerYAML |
|
81 """ |
|
82 return LexerYAML(parent=parent) |