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/felix.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/felix.py')
-rw-r--r-- | pygments/lexers/felix.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/felix.py b/pygments/lexers/felix.py index 8c0489a8..75df8381 100644 --- a/pygments/lexers/felix.py +++ b/pygments/lexers/felix.py @@ -18,12 +18,13 @@ __all__ = ['FelixLexer'] class FelixLexer(RegexLexer): """ - For `Felix <http://www.felix-lang.org>`_ source code. + For Felix source code. .. versionadded:: 1.2 """ name = 'Felix' + url = 'http://www.felix-lang.org' aliases = ['felix', 'flx'] filenames = ['*.flx', '*.flxh'] mimetypes = ['text/x-felix'] |