class documentation

class ComponentPascalLexer(RegexLexer): (source)

View In Hierarchy

For Component Pascal source code. .. versionadded:: 2.1

Method analyse_text The only other lexer using .cp is the C++ one, so we check if for a few common Pascal keywords here. Those are unfortunately quite common across various business languages as well.
Class Variable aliases Undocumented
Class Variable filenames Undocumented
Class Variable flags Undocumented
Class Variable mimetypes Undocumented
Class Variable name Undocumented
Class Variable tokens Undocumented

Inherited from RegexLexer:

Method get_tokens_unprocessed Split ``text`` into (tokentype, text) pairs.

Inherited from Lexer (via RegexLexer):

Method __init__ Undocumented
Method __repr__ Undocumented
Method add_filter Add a new stream filter to this lexer.
Method get_tokens Return an iterable of (tokentype, value) pairs generated from `text`. If `unfiltered` is set to `True`, the filtering mechanism is bypassed even if filters are defined.
Class Variable alias_filenames Undocumented
Class Variable priority Undocumented
Class Variable url Undocumented
Instance Variable encoding Undocumented
Instance Variable ensurenl Undocumented
Instance Variable filters Undocumented
Instance Variable options Undocumented
Instance Variable stripall Undocumented
Instance Variable stripnl Undocumented
Instance Variable tabsize Undocumented
def analyse_text(text): (source)

The only other lexer using .cp is the C++ one, so we check if for a few common Pascal keywords here. Those are unfortunately quite common across various business languages as well.

Undocumented

filenames: list[str] = (source)

Undocumented

Undocumented

mimetypes: list[str] = (source)

Undocumented

Undocumented