File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/javascript.cpython-310.pyc
Back
o ;j� � @ 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-present 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(?:[$_ZLuZLlZLtZLmZLoZNlz]|\\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. Z JavaScriptzQhttps://www.ecma-international.org/publications-and-standards/standards/ecma-262/Z javascriptZjs)z*.jsz*.jsmz*.mjsz*.cjs)zapplication/javascriptzapplication/x-javascriptztext/x-javascriptztext/javascript� �\s+�<!--z//.*?$� /\*.*?\*/�commentsandwhitespace�7/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gimuysd]+\b|\B)�#pop�(?=/)�r, �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* r2 r/ r>