summaryrefslogtreecommitdiff
path: root/doc
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
commit9adde78a2923de2ecd6ce84c0046cd931fdc61f9 (patch)
treef82e4c0ad4005f16db675cb1d304cb584a197f27 /doc
parent923fbfedc8467761491d4adeba1f5f00a11239eb (diff)
parentba1f8b3d22366d0b6484ca01d95c294f0213fdcd (diff)
downloadpygments-9adde78a2923de2ecd6ce84c0046cd931fdc61f9.tar.gz
merge with stable
Diffstat (limited to 'doc')
-rw-r--r--doc/docs/api.rst15
-rw-r--r--doc/languages.rst1
2 files changed, 16 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
diff --git a/doc/languages.rst b/doc/languages.rst
index a495d15c..ffe1bdb6 100644
--- a/doc/languages.rst
+++ b/doc/languages.rst
@@ -31,6 +31,7 @@ Programming languages
* Dart
* Delphi
* Dylan
+* `Elm <http://elm-lang.org/>`_
* Erlang
* `Ezhil <http://ezhillang.org>`_ Ezhil - A Tamil programming language
* Factor