summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/pygments/lexers/cplint.py
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-04-03 03:17:55 -0400
committercyfraeviolae <cyfraeviolae>2024-04-03 03:17:55 -0400
commit12cf076118570eebbff08c6b3090e0d4798447a1 (patch)
tree3ba25e17e3c3a5e82316558ba3864b955919ff72 /venv/lib/python3.11/site-packages/pygments/lexers/cplint.py
parentc45662ff3923b34614ddcc8feb9195541166dcc5 (diff)
no venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/pygments/lexers/cplint.py')
-rw-r--r--venv/lib/python3.11/site-packages/pygments/lexers/cplint.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/venv/lib/python3.11/site-packages/pygments/lexers/cplint.py b/venv/lib/python3.11/site-packages/pygments/lexers/cplint.py
deleted file mode 100644
index 8a48c01..0000000
--- a/venv/lib/python3.11/site-packages/pygments/lexers/cplint.py
+++ /dev/null
@@ -1,44 +0,0 @@
-"""
- pygments.lexers.cplint
- ~~~~~~~~~~~~~~~~~~~~~~
-
- Lexer for the cplint language
-
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-"""
-
-from pygments.lexer import bygroups, inherit, words
-from pygments.lexers import PrologLexer
-from pygments.token import Operator, Keyword, Name, String, Punctuation
-
-__all__ = ['CplintLexer']
-
-
-class CplintLexer(PrologLexer):
- """
- Lexer for cplint files, including CP-logic, Logic Programs with Annotated
- Disjunctions, Distributional Clauses syntax, ProbLog, DTProbLog.
-
- .. versionadded:: 2.12
- """
- name = 'cplint'
- url = 'https://cplint.eu'
- aliases = ['cplint']
- filenames = ['*.ecl', '*.prolog', '*.pro', '*.pl', '*.P', '*.lpad', '*.cpl']
- mimetypes = ['text/x-cplint']
-
- tokens = {
- 'root': [
- (r'map_query', Keyword),
- (words(('gaussian', 'uniform_dens', 'dirichlet', 'gamma', 'beta',
- 'poisson', 'binomial', 'geometric', 'exponential', 'pascal',
- 'multinomial', 'user', 'val', 'uniform', 'discrete',
- 'finite')), Name.Builtin),
- # annotations of atoms
- (r'([a-z]+)(:)', bygroups(String.Atom, Punctuation)),
- (r':(-|=)|::?|~=?|=>', Operator),
- (r'\?', Name.Builtin),
- inherit,
- ],
- }