From 12cf076118570eebbff08c6b3090e0d4798447a1 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:17:55 -0400 Subject: no venv --- .../site-packages/pygments/lexers/wren.py | 99 ---------------------- 1 file changed, 99 deletions(-) delete mode 100644 venv/lib/python3.11/site-packages/pygments/lexers/wren.py (limited to 'venv/lib/python3.11/site-packages/pygments/lexers/wren.py') diff --git a/venv/lib/python3.11/site-packages/pygments/lexers/wren.py b/venv/lib/python3.11/site-packages/pygments/lexers/wren.py deleted file mode 100644 index ed4ddc7..0000000 --- a/venv/lib/python3.11/site-packages/pygments/lexers/wren.py +++ /dev/null @@ -1,99 +0,0 @@ -""" - pygments.lexers.wren - ~~~~~~~~~~~~~~~~~~~~ - - Lexer for Wren. - - :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -import re - -from pygments.lexer import include, RegexLexer, words -from pygments.token import Whitespace, Punctuation, Keyword, Name, Comment, \ - Operator, Number, String, Error - -__all__ = ['WrenLexer'] - -class WrenLexer(RegexLexer): - """ - For Wren source code, version 0.4.0. - - .. versionadded:: 2.14.0 - """ - name = 'Wren' - url = 'https://wren.io' - aliases = ['wren'] - filenames = ['*.wren'] - - flags = re.MULTILINE | re.DOTALL - - tokens = { - 'root': [ - # Whitespace. - (r'\s+', Whitespace), - (r'[,\\\[\]{}]', Punctuation), - - # Really 'root', not '#push': in 'interpolation', - # parentheses inside the interpolation expression are - # Punctuation, not String.Interpol. - (r'\(', Punctuation, 'root'), - (r'\)', Punctuation, '#pop'), - - # Keywords. - (words(( - 'as', 'break', 'class', 'construct', 'continue', 'else', - 'for', 'foreign', 'if', 'import', 'return', 'static', 'super', - 'this', 'var', 'while'), prefix = r'(??\\^|~]+', Operator), - (r'[a-z][a-zA-Z_0-9]*', Name), - (r'[A-Z][a-zA-Z_0-9]*', Name.Class), - (r'__[a-zA-Z_0-9]*', Name.Variable.Class), - (r'_[a-zA-Z_0-9]*', Name.Variable.Instance), - - # Numbers. - (r'0x[0-9a-fA-F]+', Number.Hex), - (r'\d+(\.\d+)?([eE][-+]?\d+)?', Number.Float), - - # Strings. - (r'""".*?"""', String), # Raw string - (r'"', String, 'string'), # Other string - ], - 'comment': [ - (r'/\*', Comment.Multiline, '#push'), - (r'\*/', Comment.Multiline, '#pop'), - (r'([^*/]|\*(?!/)|/(?!\*))+', Comment.Multiline), - ], - 'string': [ - (r'"', String, '#pop'), - (r'\\[\\%"0abefnrtv]', String.Escape), # Escape. - (r'\\x[a-fA-F0-9]{2}', String.Escape), # Byte escape. - (r'\\u[a-fA-F0-9]{4}', String.Escape), # Unicode escape. - (r'\\U[a-fA-F0-9]{8}', String.Escape), # Long Unicode escape. - - (r'%\(', String.Interpol, 'interpolation'), - (r'[^\\"%]+', String), # All remaining characters. - ], - 'interpolation': [ - # redefine closing paren to be String.Interpol - (r'\)', String.Interpol, '#pop'), - include('root'), - ], - } -- cgit v1.2.3