class documentation
class PostgresBase: (source)
Known subclasses: pygments.lexers.sql.PlPgsqlLexer
, pygments.lexers.sql.PostgresLexer
, pygments.lexers.sql.PsqlRegexLexer
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 |
Undocumented |
Instance Variable | text |
Undocumented |
Method | _get |
Undocumented |