File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/graphics.cpython-310.pyc
o
���a�� � @ s� d Z ddlmZmZmZmZmZmZmZ ddl m
Z
mZmZm
Z
mZmZmZmZmZ g d�ZG dd� de�ZG dd� de�ZG d d
� d
e�ZG dd� de�Zd
d� Zdd� ZG dd� de�ZG dd� de�ZdS )z�
pygments.lexers.graphics
~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for computer graphics and plotting related languages.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�
RegexLexer�words�include�bygroups�using�this�default) �Text�Comment�Operator�Keyword�Name�Number�Punctuation�String�
Whitespace)�
GLShaderLexer�PostScriptLexer�AsymptoteLexer�GnuplotLexer�PovrayLexer�HLSLShaderLexerc @ s� e Zd ZdZdZdgZg d�ZdgZddej fdej
fd ejfd
efdefdefd
e
fdejfdejfdejfdejfdejfedddd�efedddd�ejfedddd�ejfedddd�ejfdejfdefde
fdefgiZdS )r z@
GLSL (OpenGL Shader) lexer.
.. versionadded:: 1.1
�GLSL�glsl)z*.vertz*.fragz*.geoztext/x-glslsrc�root�^#.*$�//.*$�/(\\\n)?[*](.|\n)*?[*](\\\n)?/�0\+|-|~|!=?|\*|/|%|<<|>>|<=?|>=?|==?|&&?|\^|\|\|?�[?:]�\bdefined\bz[;{}(),\[\]]z[+-]?\d*\.\d+([eE][-+]?\d+)?z[+-]?\d+\.\d*([eE][-+]?\d+)?�0[xX][0-9a-fA-F]*�0[0-7]*�[1-9][0-9]*))� attribute�const�uniform�varying�buffer�shared�in�out�layout�flat�smooth�
noperspective�centroid�sample�patch�inout�lowp�mediump�highp� precision� invariant�precise�coherent�volatile�restrict�readonly� writeonly�break�continue�do�for�while�switch�caser �if�else�
subroutine�discard�return�struct�\b��prefix�suffix��true�false)w�void�atomic_uint�float�vec2�vec3�vec4�double�dvec2�dvec3�dvec4�int�ivec2�ivec3�ivec4�uint�uvec2�uvec3�uvec4�bool�bvec2�bvec3�bvec4�mat2�mat3�mat4�dmat2�dmat3�dmat4�mat2x2�mat2x3�mat2x4�dmat2x2�dmat2x3�dmat2x4�mat3x2�mat3x3�mat3x4�dmat3x2�dmat3x3�dmat3x4�mat4x2�mat4x3�mat4x4�dmat4x2�dmat4x3�dmat4x4� sampler1D� sampler2D� sampler3D�samplerCube�sampler1DArray�sampler2DArray�samplerCubeArray�
sampler2DRect�
samplerBuffer�sampler2DMS�sampler2DMSArray�sampler1DShadow�sampler2DShadow�samplerCubeShadow�sampler1DArrayShadow�sampler2DArrayShadow�samplerCubeArrayShadow�sampler2DRectShadow�
isampler1D�
isampler2D�
isampler3D�isamplerCube�isampler1DArray�isampler2DArray�isamplerCubeArray�isampler2DRect�isamplerBuffer�isampler2DMS�isampler2DMSArray�
usampler1D�
usampler2D�
usampler3D�usamplerCube�usampler1DArray�usampler2DArray�usamplerCubeArray�usampler2DRect�usamplerBuffer�usampler2DMS�usampler2DMSArray�image1D�image2D�image3D� imageCube�image1DArray�image2DArray�imageCubeArray�image2DRect�imageBuffer� image2DMS�image2DMSArray�iimage1D�iimage2D�iimage3D�
iimageCube�
iimage1DArray�
iimage2DArray�iimageCubeArray�iimage2DRect�iimageBuffer�
iimage2DMS�iimage2DMSArray�uimage1D�uimage2D�uimage3D�
uimageCube�
uimage1DArray�
uimage2DArray�uimageCubeArray�uimage2DRect�uimageBuffer�
uimage2DMS�uimage2DMSArray)'�common� partition�active�asm�class�union�enum�typedef�templater �resource�goto�inline�noinline�public�static�extern�external� interface�long�short�half�fixed�unsigned�superp�input�output�hvec2�hvec3�hvec4�fvec2�fvec3�fvec4�
sampler3DRect�filter�sizeof�cast� namespacer zgl_\w*�[a-zA-Z_]\w*z\.�\s+N)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypesr
�Preproc�Single� Multiliner r r �Float�Hex�Oct�Integerr r �Constant�Type�Reservedr
�Builtinr �tokens� r r �:/usr/lib/python3/dist-packages/pygments/lexers/graphics.pyr s^ �����2�3�4
��
��r c @ s^ e Zd ZdZdZdgZddgZdgZdej fdej
fd ejfd
efdefdefd
e
fdejfdejfdejfdejfdejfdedfedddd�efedddd�ejfedddd�ejfedddd�ejfedddd�ejfedddd�ejfedddd�ejfdejfed ddd�ejfd!efd"ej fd#efgded$fd%ejfd&efd'efd(efgd)�Zd*S )+r zL
HLSL (Microsoft Direct3D Shader) lexer.
.. versionadded:: 2.3
�HLSL�hlslz*.hlslz*.hlsliztext/x-hlslr r r r r r z
[;{}(),.\[\]]z[+-]?\d*\.\d+([eE][-+]?\d+)?f?z[+-]?\d+\.\d*([eE][-+]?\d+)?f?r! r"