summaryrefslogtreecommitdiff
path: root/pygments/lexers/prolog.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2022-03-20 10:29:30 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2022-03-20 10:29:30 +0100
commit64e8e05307689fe726ce9df2d5907e9c2fb67405 (patch)
tree1d2f1eb768972ac49933367b9ec127e638cb7466 /pygments/lexers/prolog.py
parent96eaebafc848c989e9fc081768e3156add3128fd (diff)
downloadpygments-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/prolog.py')
-rw-r--r--pygments/lexers/prolog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/prolog.py b/pygments/lexers/prolog.py
index 90031a8a..2cdceedd 100644
--- a/pygments/lexers/prolog.py
+++ b/pygments/lexers/prolog.py
@@ -83,12 +83,13 @@ class PrologLexer(RegexLexer):
class LogtalkLexer(RegexLexer):
"""
- For `Logtalk <http://logtalk.org/>`_ source code.
+ For Logtalk source code.
.. versionadded:: 0.10
"""
name = 'Logtalk'
+ url = 'http://logtalk.org/'
aliases = ['logtalk']
filenames = ['*.lgt', '*.logtalk']
mimetypes = ['text/x-logtalk']