eric7.QScintilla.Lexers.LexerContainer

Module implementing a base class for custom lexers.

Global Attributes

None

Classes

LexerContainer Subclass as a base for the implementation of custom lexers.

Functions

None


LexerContainer

Subclass as a base for the implementation of custom lexers.

Derived from

Lexer, QsciLexer

Class Attributes

None

Class Methods

None

Methods

LexerContainer Constructor
description
keywords Public method to get the keywords.
language Public method returning the language of the lexer.
lexer Public method returning the type of the lexer.
styleText Public method to perform the styling.

Static Methods

None

LexerContainer (Constructor)

LexerContainer(parent=None)

Constructor

parent
parent widget of this lexer

LexerContainer.description

description(style)

LexerContainer.keywords

keywords(kwSet)

Public method to get the keywords.

kwSet
number of the keyword set (integer)
Return:
string giving the keywords (string) or None

LexerContainer.language

language()

Public method returning the language of the lexer.

Return:
language of the lexer (string)

LexerContainer.lexer

lexer()

Public method returning the type of the lexer.

Return:
type of the lexer (string)

LexerContainer.styleText

styleText(start, end)

Public method to perform the styling.

start
position of first character to be styled (integer)
end
position of last character to be styled (integer)
Up