diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2022-03-20 10:29:30 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2022-03-20 10:29:30 +0100 |
commit | 64e8e05307689fe726ce9df2d5907e9c2fb67405 (patch) | |
tree | 1d2f1eb768972ac49933367b9ec127e638cb7466 /pygments/lexers/erlang.py | |
parent | 96eaebafc848c989e9fc081768e3156add3128fd (diff) | |
download | pygments-git-64e8e05307689fe726ce9df2d5907e9c2fb67405.tar.gz |
Rework URL information in lexers.
This commit adds a new url field to a lexer, which can be used to link
to the language website, instead of relying on having the link in either
languages.rst or the docstring of the lexer. Additionally, it changes the
languages.rst file to auto-generate the list of lexers from the actual
source code, using the provided URL.
Diffstat (limited to 'pygments/lexers/erlang.py')
-rw-r--r-- | pygments/lexers/erlang.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/erlang.py b/pygments/lexers/erlang.py index 63de531f..6cdca984 100644 --- a/pygments/lexers/erlang.py +++ b/pygments/lexers/erlang.py @@ -26,12 +26,11 @@ class ErlangLexer(RegexLexer): """ For the Erlang functional programming language. - Blame Jeremy Thurgood (http://jerith.za.net/). - .. versionadded:: 0.9 """ name = 'Erlang' + url = 'https://www.erlang.org/' aliases = ['erlang'] filenames = ['*.erl', '*.hrl', '*.es', '*.escript'] mimetypes = ['text/x-erlang'] @@ -223,12 +222,13 @@ def gen_elixir_sigstr_rules(term, term_class, token, interpol=True): class ElixirLexer(RegexLexer): """ - For the `Elixir language <http://elixir-lang.org>`_. + For the Elixir language. .. versionadded:: 1.5 """ name = 'Elixir' + url = 'http://elixir-lang.org' aliases = ['elixir', 'ex', 'exs'] filenames = ['*.ex', '*.eex', '*.exs', '*.leex'] mimetypes = ['text/x-elixir'] |