class documentation

class PostgresBase:

Known subclasses: pygments.lexers.sql.PlPgsqlLexer, pygments.lexers.sql.PostgresLexer, pygments.lexers.sql.PsqlRegexLexer

View In Hierarchy

Base class for Postgres-related lexers.

This is implemented as a mixin to avoid the Lexer metaclass kicking in. this way the different lexer don't have a common Lexer ancestor. If they had, _tokens could be created on this ancestor and not updated for the other classes, resulting e.g. in PL/pgSQL parsed as SQL. This shortcoming seem to suggest that regexp lexers are not really subclassable.

Method ​_get​_lexer Undocumented
Method get​_tokens​_unprocessed Undocumented
Instance Variable text Undocumented
def _get_lexer(self, lang):

Undocumented

def get_tokens_unprocessed(self, text, *args):

Undocumented

text =

Undocumented