summaryrefslogtreecommitdiff
path: root/doc/docs
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-02-02 15:29:13 +0100
committerGeorg Brandl <georg@python.org>2016-02-02 15:29:13 +0100
commit86e21cf5df3956c572848a5d2b44fa3f6d220883 (patch)
tree81e7a8310e9cc9523cc53952d70d6c347714f556 /doc/docs
parent9b8a2ef3d351ddd22e0564598d7e5eee2f78296d (diff)
parent1d33398ba257ae4165a4de619d1abf1b0b2feed1 (diff)
downloadpygments-git-86e21cf5df3956c572848a5d2b44fa3f6d220883.tar.gz
merge with stable
Diffstat (limited to 'doc/docs')
-rw-r--r--doc/docs/api.rst15
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