�
|�e�[ � �h � d Z ddlZddlZddlZddlZddlmZ ddlmZm Z ddl
mZmZm
Z
mZmZmZmZ ddlmZmZmZmZmZmZ ddlmZ ddlmZmZ dd lmZm Z m!Z!m"Z"m#Z# dd
l$m%Z% ddl&m'Z'm(Z( ddl)m*Z*m+Z+ dd
l,m-Z-m.Z. d� Z/d� Z0d� Z1d� Z2d� Z3d� Z4 G d� dejj � Z5ejl fd�Z7y)z�
pygments.cmdline
~~~~~~~~~~~~~~~~
Command line interface.
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�dedent)�__version__� highlight)�
ClassNotFound�OptionError�docstring_headline�guess_decode�guess_decode_from_terminal�terminal_encoding�UnclosingTextIOWrapper)�get_all_lexers�get_lexer_by_name�guess_lexer�load_lexer_from_file�get_lexer_for_filename�find_lexer_class_for_filename)� TextLexer)�LatexEmbeddedLexer�LatexFormatter)�get_all_formatters�get_formatter_by_name�load_formatter_from_file�get_formatter_for_filename�find_formatter_class)�TerminalFormatter)�Terminal256Formatter�TerminalTrueColorFormatter)�get_all_filters�find_filter_class)�get_all_styles�get_style_by_namec �0 � i }| s|S | D ]v }|j � s�|j d� }|D ]M }|j � } |j dd� \ }}|j � }|j � }|||< |