Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pygments/lexers/__pycache__/javascript.cpython-39.pyc
Ðазад
a a�h� � @ s� d Z ddlZddlmZmZmZmZmZmZm Z m Z mZmZm Z mZ ddlmZmZmZmZmZmZmZmZmZmZmZ ddlmZ ddlmZ g d�Z de�!dd d ddd � d Z"de�!dd d ddd dddd� d Z#e"d e# d Z$G dd� de �Z%G dd� de%�Z&G dd� de �Z'G dd� de �Z(G dd � d e �Z)G d!d"� d"e �Z*G d#d$� d$e �Z+G d%d&� d&e �Z,G d'd(� d(e �Z-G d)d*� d*e �Z.G d+d,� d,e �Z/G d-d.� d.e �Z0dS )/z� pygments.lexers.javascript ~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for JavaScript and related languages. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)�bygroups�combined�default� do_insertions�include�inherit�Lexer� RegexLexer�this�using�words�line_re)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Other�Generic� Whitespace)�get_bool_opt)�JavascriptLexer�KalLexer�LiveScriptLexer� DartLexer�TypeScriptLexer� LassoLexer�ObjectiveJLexer�CoffeeScriptLexer� MaskLexer� EarlGreyLexer�JuttleLexer�NodeConsoleLexerz(?:[$_ZLuZLl�LtZLmZLoZNlz]|\\u[a-fA-F0-9]{4})z(?:[$ZMnZMcZNdZPcu ]|\\u[a-fA-F0-9]{4})z(?:z)*c @ s� e Zd ZdZdZdZddgZg d�Zg d�ZdZ e je jB Z d efd efdejfdejfged �dejdfdedfed�gdedfgdejfdedfed �dejfdejfdejfdejfdejfdefdedfdedfdefdej dfd e!j"fd!e!dfd"e!j#dfd#e!j"fd$e!j$fd%e%j&fd&e%j'fd'e(e!e�dfd(e%j)dfe*e%j)fd)ej+fd*ejfd+ej,d,fd-e%fgd+ej,dfd.ej,fd/ej-d0fd1ej,fd2ej,fgd3ej-dfed4�gd5�Z.d6S )7r z% For JavaScript source code. � JavaScriptzQhttps://www.ecma-international.org/publications-and-standards/standards/ecma-262/� javascript�js)z*.jsz*.jsmz*.mjsz*.cjs)zapplication/javascriptzapplication/x-javascriptztext/x-javascriptztext/javascript� �\s+�<!--z//.*?$� /\*.*?\*/�commentsandwhitespace�7/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gimuysd]+\b|\B)�#pop�(?=/)�r0 �badregex�\nz\A#! ?/.*?$�^(?=\s|/|<!--)�slashstartsregexz0[bB][01]+n?z0[oO]?[0-7]+n?z0[xX][0-9a-fA-F]+n?z[0-9]+nz2(\.[0-9]+|[0-9]+\.[0-9]*|[0-9]+)([eE][-+]?[0-9]+)?z \.\.\.|=>zP\+\+|--|~|\?\?=?|\?|:|\\(?=\n)|(<<|>>>?|==?|!=?|(?:\*\*|\|\||&&|[-<>+*%&|^/]))=?�[{(\[;,]�[})\].]z((typeof|instanceof|in|void|delete|new)\bz\b(constructor|from|as)\bz�(for|in|while|do|break|return|continue|switch|case|default|if|else|throw|try|catch|finally|yield|await|async|this|of|static|export|import|debugger|extends|super)\bz%(var|let|const|with|function|class)\bz�(abstract|boolean|byte|char|double|enum|final|float|goto|implements|int|interface|long|native|package|private|protected|public|short|synchronized|throws|transient|volatile)\b�*(true|false|null|NaN|Infinity|undefined)\ba� (Array|Boolean|Date|BigInt|Function|Math|ArrayBuffer|Number|Object|RegExp|String|Promise|Proxy|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|DataView|document|window|globalThis|global|Symbol|Intl|WeakSet|WeakMap|Set|Map|Reflect|JSON|Atomics|Int(?:8|16|32)Array|BigInt64Array|Float32Array|Float64Array|Uint8ClampedArray|Uint(?:8|16|32)Array|BigUint64Array)\bz;((?:Eval|Internal|Range|Reference|Syntax|Type|URI)?Error)\bz (super)(\s*)(\([\w,?.$\s]+\s*\))z!([a-zA-Z_?.$][\w?.$]*)(?=\(\) \{)�"(\\\\|\\[^\\]|[^"\\])*"�'(\\\\|\\[^\\]|[^'\\])*'�`�interp� #[a-zA-Z_]\w*�\\.z\$\{� interp-insidez\$z[^`\\$]+�\}�root)r. r6 r3 rB r= r@ N)/�__name__� __module__�__qualname__�__doc__�name�url�aliases� filenames� mimetypes� version_added�re�DOTALL� MULTILINE�flagsr r �Single� Multiliner r �Regexr r �Hashbangr �Bin�Oct�Hex�Integer�Floatr r �Wordr �Reserved�Declaration�Constantr �Builtin� Exceptionr r �JS_IDENT�Double�Backtick�Interpol�tokens� re re ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pygments/lexers/javascript.pyr ! s� ����� � �� � �= � ��r c @ s� e Zd ZdZdZdZddgZdgZddgZd Z d Z dded fdejd fdej fdejfdeej eeje�d fdeejeeeej�fde ejfedefg iZdS )r z% For TypeScript source code. � TypeScriptzhttps://www.typescriptlang.org/� typescript�tsz*.tszapplication/x-typescriptztext/x-typescript�1.6g �?rB z9(abstract|implements|private|protected|public|readonly)\br6 z(enum|interface|override)\bz\b(declare|type)\bz\b(string|boolean|number)\bz\b(module)(\s*)([\w?.$]+)(\s*)z!([\w?.$]+)(\s*)(:)(\s*)([\w?.$]+)�@r>