diff options
| author | Georg Brandl <georg@python.org> | 2016-02-02 15:29:13 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2016-02-02 15:29:13 +0100 |
| commit | 86e21cf5df3956c572848a5d2b44fa3f6d220883 (patch) | |
| tree | 81e7a8310e9cc9523cc53952d70d6c347714f556 /doc/docs | |
| parent | 9b8a2ef3d351ddd22e0564598d7e5eee2f78296d (diff) | |
| parent | 1d33398ba257ae4165a4de619d1abf1b0b2feed1 (diff) | |
| download | pygments-git-86e21cf5df3956c572848a5d2b44fa3f6d220883.tar.gz | |
merge with stable
Diffstat (limited to 'doc/docs')
| -rw-r--r-- | doc/docs/api.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/docs/api.rst b/doc/docs/api.rst index 123a4643..dd831bd1 100644 --- a/doc/docs/api.rst +++ b/doc/docs/api.rst @@ -89,6 +89,21 @@ Functions from :mod:`pygments.lexers`: .. versionadded:: 0.6 +.. function:: find_lexer_class_by_name(alias) + + Return the `Lexer` subclass that has `alias` in its aliases list, without + instantiating it. + + Will raise :exc:`pygments.util.ClassNotFound` if no lexer with that alias is + found. + + .. versionadded:: 2.2 + +.. function:: find_lexer_class(name) + + Return the `Lexer` subclass that with the *name* attribute as given by + the *name* argument. + .. module:: pygments.formatters |
