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/modeling.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/modeling.py')
-rw-r--r-- | pygments/lexers/modeling.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/modeling.py b/pygments/lexers/modeling.py index 21cb1158..56448f50 100644 --- a/pygments/lexers/modeling.py +++ b/pygments/lexers/modeling.py @@ -22,11 +22,12 @@ __all__ = ['ModelicaLexer', 'BugsLexer', 'JagsLexer', 'StanLexer'] class ModelicaLexer(RegexLexer): """ - For `Modelica <http://www.modelica.org/>`_ source code. + For Modelica source code. .. versionadded:: 1.1 """ name = 'Modelica' + url = 'http://www.modelica.org/' aliases = ['modelica'] filenames = ['*.mo'] mimetypes = ['text/x-modelica'] @@ -97,7 +98,7 @@ class ModelicaLexer(RegexLexer): class BugsLexer(RegexLexer): """ - Pygments Lexer for `OpenBugs <http://www.openbugs.net/>`_ and WinBugs + Pygments Lexer for OpenBugs and WinBugs models. .. versionadded:: 1.6 |