Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
o ���a�� � @ s� d Z ddlZddlmZmZmZmZmZmZm Z m Z mZmZm Z ddlmZmZmZmZmZmZmZmZmZmZ ddlmZ ddlmZ g d�Zde�dd d ddd � d Z de�dd d ddd dddd� d Z!e d e! d Z"e�#d�Z$G dd� de �Z%G dd� de%�Z&G dd� de �Z'G dd� de �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 �Z/G d.d/� d/e �Z0dS )0z� pygments.lexers.javascript ~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for JavaScript and related languages. :copyright: Copyright 2006-2021 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) �Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Other�Generic)�get_bool_opt)�JavascriptLexer�KalLexer�LiveScriptLexer� DartLexer�TypeScriptLexer� LassoLexer�ObjectiveJLexer�CoffeeScriptLexer� MaskLexer� EarlGreyLexer�JuttleLexer�NodeConsoleLexerz(?:[$_�Lu�Ll�Lt�Lm�Lo�Nlz]|\\u[a-fA-F0-9]{4})z(?:[$�Mn�Mc�Nd�Pcu ]|\\u[a-fA-F0-9]{4})z(?:z)*z.*? c @ s� e Zd ZdZdZddgZg d�Zg d�Zej ej B ejB Zde fdefd ejfd ejfged�dejd fde dfed �gde d fgdejfde dfed�dejfdejfdejfdejfdejfdefdedfdedfdefdejdfdej fdedfd ej!dfd!ej fd"ej"fd#e#j$fd$e#j%fd%e&ee �dfd&e#j'dfe(e#j'fd'ej)fd(ejfd)ej*d*fgd)ej*d fd+ej*fd,ej+d-fd.ej*fd/ej*fgd0ej+d fed1�gd2�Z,d3S )4r z% For JavaScript source code. � JavaScript� javascript�js)z*.jsz*.jsmz*.mjsz*.cjs)zapplication/javascriptzapplication/x-javascriptztext/x-javascriptztext/javascript�\s+�<!--�//.*?\n� /\*.*?\*/�commentsandwhitespace�7/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gimuysd]+\b|\B)�#pop�(?=/)�r7 �badregex�\nz\A#! ?/.*?\n�^(?=\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�\\.z\$\{� interp-insidez\$z[^`\\$]+�\}�root)r5 r= r: rH rD rF N)-�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�re�DOTALL�UNICODE� MULTILINE�flagsr r �Single� Multiliner r �Regexr �Hashbangr �Bin�Oct�Hex�Integer�Floatr r �Wordr �Reserved�Declaration�Constantr �Builtin� Exceptionr r �JS_IDENT�Double�Backtick�Interpol�tokens� rj rj �</usr/lib/python3/dist-packages/pygments/lexers/javascript.pyr "