File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/shell.cpython-310.pyc
Back
o ;j � � @ sD d Z ddlZddlmZmZmZmZmZmZm Z m Z mZmZ ddl mZmZmZmZmZmZmZmZmZmZ ddlmZ g d�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd� de�Z#G dd� de�Z$G dd� de�Z%G dd� de�Z&dS )z� pygments.lexers.shell ~~~~~~~~~~~~~~~~~~~~~ Lexers for various shells. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N) �Lexer� RegexLexer� do_insertions�bygroups�include�default�this�using�words�line_re) �Punctuation� Whitespace�Text�Comment�Operator�Keyword�Name�String�Number�Generic��shebang_matches)� BashLexer�BashSessionLexer� TcshLexer� BatchLexer�SlurmBashLexer�MSDOSSessionLexer�PowerShellLexer�PowerShellSessionLexer�TcshSessionLexer�FishShellLexer� ExeclineLexerc @ s� e Zd ZdZdZg d�Zg d�Zg d�ZdZdZ e d�d ejd fe d�e d�gd e dfde dfdejdfdejfdejfdefgdee e�fdejfdejfdejfdejfdeejee�fdefdefdefdefg d ejfd!ejd"fd#ejfd$ejfd%efd&efd'efd(efd)efd*efd+efgd!ejd,fd-ejfe d�gd.ejd,fd/e fd0ejfd1efd2efe d3�gd4e d,fe d3�gd5e d,fd6efd7efd8efd9efd:efd;ejfe d3�gd ejd,fe d3�gd<� Zd=d>� Zd?S )@r z. Lexer for (ba|k|z|)sh shell scripts. ZBash)Zbash�shZkshZzsh�shellZopenrc)z*.shz*.kshz*.bashz*.ebuildz*.eclassz*.exheres-0z*.exlibz*.zshz.bashrcZbashrcz.bash_*zbash_*Zzshrcz.zshrcz.kshrcZkshrcZPKGBUILD)zapplication/x-shzapplication/x-shellscriptztext/x-shellscript�(https://en.wikipedia.org/wiki/Unix_shellz0.6�basic�`� backticks�data�interp�\$\(\(�math�\$\(�paren�\$\{#?�curlyz\$[a-zA-Z_]\w*z\$(?:\d+|[#$?!_*@-])�\$zj\b(if|fi|else|while|in|do|done|for|then|return|function|case|select|break|continue|until|esac|elif)(\s*)\baG \b(alias|bg|bind|builtin|caller|cd|command|compgen|complete|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|popd|printf|pushd|pwd|read|readonly|set|shift|shopt|source|suspend|test|time|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)(?=[\s)`])�\A#!.+\n�#.*\n�\\[\w\W]z(\b\w+)(\s*)(\+?=)z[\[\]{}()=]z<<<�<<-?\s*(\'?)\\?(\w+)[\w\W]+?\2z&&|\|\|z(?s)\$?"(\\.|[^"\\$])*"�"�string�#(?s)\$'(\\\\|\\[0-7]+|\\.|[^'\\])*'� (?s)'.*?'�;�&z\|�\s+z\d+\b�[^=\s\[\]{}()$"\'`\\<&|;]+�<�#pop� (?s)(\\\\|\\[0-7]+|\\.|[^"\\$])+�\}�:-�\w+z [^}:"\'`$\\]+�:�root�\)�\)\)z\*\*|\|\||<<|>>|[-+*/%^|&<>]z\d+#[\da-zA-Z]+� \d+#(?! )z0[xX][\da-fA-F]+�\d+z[a-zA-Z_]\w*) rE r* r&