summaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py3/pygments/lexers/prolog.py
diff options
context:
space:
mode:
authorarcadia-devtools <[email protected]>2022-06-09 14:39:19 +0300
committerarcadia-devtools <[email protected]>2022-06-09 14:39:19 +0300
commitc04b663c7bb4b750deeb8f48f620497ec13da8fa (patch)
tree151ebc8bfdd2ad918caf5e6e2d8013e14272ddf8 /contrib/python/Pygments/py3/pygments/lexers/prolog.py
parent0d55ca22c507d18c2f35718687e0b06d9915397b (diff)
intermediate changes
ref:2d4f292087954c9344efdabb7b2a67f466263c65
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/prolog.py')
-rw-r--r--contrib/python/Pygments/py3/pygments/lexers/prolog.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/prolog.py b/contrib/python/Pygments/py3/pygments/lexers/prolog.py
index 21c813625db..2cdceeddd79 100644
--- a/contrib/python/Pygments/py3/pygments/lexers/prolog.py
+++ b/contrib/python/Pygments/py3/pygments/lexers/prolog.py
@@ -4,7 +4,7 @@
Lexers for Prolog and Prolog-like languages.
- :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -26,8 +26,6 @@ class PrologLexer(RegexLexer):
filenames = ['*.ecl', '*.prolog', '*.pro', '*.pl']
mimetypes = ['text/x-prolog']
- flags = re.UNICODE | re.MULTILINE
-
tokens = {
'root': [
(r'/\*', Comment.Multiline, 'nested-comment'),
@@ -85,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']
@@ -200,9 +199,9 @@ class LogtalkLexer(RegexLexer):
(r'(>>|<<|/\\|\\\\|\\)', Operator),
# Predicate aliases
(r'\bas\b', Operator),
- # Arithemtic evaluation
+ # Arithmetic evaluation
(r'\bis\b', Keyword),
- # Arithemtic comparison
+ # Arithmetic comparison
(r'(=:=|=\\=|<|=<|>=|>)', Operator),
# Term creation and decomposition
(r'=\.\.', Operator),
@@ -213,7 +212,7 @@ class LogtalkLexer(RegexLexer):
# Evaluable functors
(r'(//|[-+*/])', Operator),
(r'\b(e|pi|div|mod|rem)\b', Operator),
- # Other arithemtic functors
+ # Other arithmetic functors
(r'\b\*\*\b', Operator),
# DCG rules
(r'-->', Operator),