3
V'íc ã @ sØ d Z ddlmZmZmZmZmZmZmZ ddl m
Z
mZmZm
Z
mZmZmZmZmZ dddddd gZG d
d deZG dd d eZG dd deZG d
d deZdd Zdd ZG dd deZG dd deZdS )zñ
pygments.lexers.graphics
~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for computer graphics and plotting related languages.
:copyright: Copyright 2006-2022 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 ZdZdZdgZdddgZdgZdd ej fd
ej
fdejfdefd
efdefde
fdejfdejfdejfdejfdejfedåd>d>d?efedæd>d>d?ejfedçd>d>d?ejfedèd>d>d?ejfdàejfdáefdâe
fdãefgiZdäS )ér z@
GLSL (OpenGL Shader) lexer.
.. versionadded:: 1.1
ZGLSLZglslz*.vertz*.fragz*.geoztext/x-glslsrcÚrootz^#.*$z//.*$z/(\\\n)?[*](.|\n)*?[*](\\\n)?/z0\+|-|~|!=?|\*|/|%|<<|>>|<=?|>=?|==?|&&?|\^|\|\|?z[?:]z\bdefined\bz[;{}(),\[\]]z[+-]?\d*\.\d+([eE][-+]?\d+)?z[+-]?\d+\.\d*([eE][-+]?\d+)?z0[xX][0-9a-fA-F]*z0[0-7]*z[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Ústructz\b)ÚprefixÚsuffixÚtrueÚfalseÚ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*z[a-zA-Z_]\w*z\.z\s+N))r r r r r r r r r! r"