summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/pygments/lexers/x10.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/x10.py
parentc45662ff3923b34614ddcc8feb9195541166dcc5 (diff)
no venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/pygments/lexers/x10.py')
-rw-r--r--venv/lib/python3.11/site-packages/pygments/lexers/x10.py67
1 files changed, 0 insertions, 67 deletions
diff --git a/venv/lib/python3.11/site-packages/pygments/lexers/x10.py b/venv/lib/python3.11/site-packages/pygments/lexers/x10.py
deleted file mode 100644
index c125b53..0000000
--- a/venv/lib/python3.11/site-packages/pygments/lexers/x10.py
+++ /dev/null
@@ -1,67 +0,0 @@
-"""
- pygments.lexers.x10
- ~~~~~~~~~~~~~~~~~~~
-
- Lexers for the X10 programming language.
-
- :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-"""
-
-from pygments.lexer import RegexLexer
-from pygments.token import Text, Comment, Keyword, String
-
-__all__ = ['X10Lexer']
-
-
-class X10Lexer(RegexLexer):
- """
- For the X10 language.
-
- .. versionadded:: 2.2
- """
-
- name = 'X10'
- url = 'http://x10-lang.org/'
- aliases = ['x10', 'xten']
- filenames = ['*.x10']
- mimetypes = ['text/x-x10']
-
- keywords = (
- 'as', 'assert', 'async', 'at', 'athome', 'ateach', 'atomic',
- 'break', 'case', 'catch', 'class', 'clocked', 'continue',
- 'def', 'default', 'do', 'else', 'final', 'finally', 'finish',
- 'for', 'goto', 'haszero', 'here', 'if', 'import', 'in',
- 'instanceof', 'interface', 'isref', 'new', 'offer',
- 'operator', 'package', 'return', 'struct', 'switch', 'throw',
- 'try', 'type', 'val', 'var', 'when', 'while'
- )
-
- types = (
- 'void'
- )
-
- values = (
- 'false', 'null', 'self', 'super', 'this', 'true'
- )
-
- modifiers = (
- 'abstract', 'extends', 'implements', 'native', 'offers',
- 'private', 'property', 'protected', 'public', 'static',
- 'throws', 'transient'
- )
-
- tokens = {
- 'root': [
- (r'[^\S\n]+', Text),
- (r'//.*?\n', Comment.Single),
- (r'/\*(.|\n)*?\*/', Comment.Multiline),
- (r'\b(%s)\b' % '|'.join(keywords), Keyword),
- (r'\b(%s)\b' % '|'.join(types), Keyword.Type),
- (r'\b(%s)\b' % '|'.join(values), Keyword.Constant),
- (r'\b(%s)\b' % '|'.join(modifiers), Keyword.Declaration),
- (r'"(\\\\|\\[^\\]|[^"\\])*"', String),
- (r"'\\.'|'[^\\]'|'\\u[0-9a-fA-F]{4}'", String.Char),
- (r'.', Text)
- ],
- }