File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/graphics.cpython-38.pyc
U
�
\s� � @ s� d Z ddlmZmZmZmZmZmZmZ ddl m
Z
mZmZm
Z
mZmZmZmZ dddddd gZG d
d� de�ZG dd � d e�ZG dd� de�ZG d
d� de�Zdd� Zdd� ZG dd� de�ZG dd� de�ZdS )z�
pygments.lexers.graphics
~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for computer graphics and plotting related languages.
:copyright: Copyright 2006-2017 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�
GLShaderLexer�PostScriptLexer�AsymptoteLexer�GnuplotLexer�PovrayLexer�HLSLShaderLexerc @ s� e Zd ZdZdZdgZdddgZdgZdd ej fd
ej
fdejfdefd
efdefde
fdejfdejfdejfdejfdejfedddd�efedddd�ejfedddd�ejfedddd�ejfdejfdefde
fdefgiZdS ) r z@
GLSL (OpenGL Shader) lexer.
.. versionadded:: 1.1
ZGLSLZglslz*.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]*))Z attribute�const�uniformZvarying�buffer�shared�in�outZlayoutZflat�smooth�
noperspective�centroid�sampleZpatch�inoutZlowpZmediumpZhighp� precisionZ invariant�preciseZcoherent�volatileZrestrict�readonlyZ writeonly�break�continue�do�for�while�switch�caser �if�elseZ
subroutine�discard�return�struct�\b��prefix�suffix��true�false)w�voidZatomic_uint�floatZvec2Zvec3Zvec4�doubleZdvec2Zdvec3Zdvec4�intZivec2Zivec3Zivec4�uintZuvec2Zuvec3Zuvec4�boolZbvec2Zbvec3Zbvec4Zmat2Zmat3Zmat4Zdmat2Zdmat3Zdmat4Zmat2x2Zmat2x3Zmat2x4Zdmat2x2Zdmat2x3Zdmat2x4Zmat3x2Zmat3x3Zmat3x4Zdmat3x2Zdmat3x3Zdmat3x4Zmat4x2Zmat4x3Zmat4x4Zdmat4x2Zdmat4x3Zdmat4x4Z sampler1DZ sampler2DZ sampler3DZsamplerCubeZsampler1DArrayZsampler2DArrayZsamplerCubeArrayZ
sampler2DRectZ
samplerBufferZsampler2DMSZsampler2DMSArrayZsampler1DShadowZsampler2DShadowZsamplerCubeShadowZsampler1DArrayShadowZsampler2DArrayShadowZsamplerCubeArrayShadowZsampler2DRectShadowZ
isampler1DZ
isampler2DZ
isampler3DZisamplerCubeZisampler1DArrayZisampler2DArrayZisamplerCubeArrayZisampler2DRectZisamplerBufferZisampler2DMSZisampler2DMSArrayZ
usampler1DZ
usampler2DZ
usampler3DZusamplerCubeZusampler1DArrayZusampler2DArrayZusamplerCubeArrayZusampler2DRectZusamplerBufferZusampler2DMSZusampler2DMSArrayZimage1DZimage2DZimage3DZ imageCubeZimage1DArrayZimage2DArrayZimageCubeArrayZimage2DRectZimageBufferZ image2DMSZimage2DMSArrayZiimage1DZiimage2DZiimage3DZ
iimageCubeZ
iimage1DArrayZ
iimage2DArrayZiimageCubeArrayZiimage2DRectZiimageBufferZ
iimage2DMSZiimage2DMSArrayZuimage1DZuimage2DZuimage3DZ
uimageCubeZ
uimage1DArrayZ
uimage2DArrayZuimageCubeArrayZuimage2DRectZuimageBufferZ
uimage2DMSZuimage2DMSArray)'�common� partitionZactive�asm�class�union�enum�typedef�templater �resource�goto�inlineZnoinline�public�static�externZexternal� interface�long�short�halfZfixed�unsignedZsuperp�input�outputZhvec2Zhvec3Zhvec4Zfvec2Zfvec3Zfvec4Z
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� rx rx �:/usr/lib/python3/dist-packages/pygments/lexers/graphics.pyr sd
� �� ��2 �3�4
��
��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
ZHLSLZhlslz*.hlslz*.hlsliztext/x-hlslr r r r r r z
[;{}(),.\[\]]z[+-]?\d*\.\d+([eE][-+]?\d+)?f?z[+-]?\d+\.\d*([eE][-+]?\d+)?f?r r r �"�string)?rK Zasm_fragmentr0 r6 Zcbufferr) rL Zcolumn_major�compileZcompile_fragmentr! r1 r r9 r2 r8 ZexportrV r3 ZfxgroupZgloballycoherentZgroupsharedr7 r% rS r+ rW �lineZlineadj�linearra Znointerpolationr( ZNULLr&