HOME


Mini Shell 1.0
DIR: /usr/lib/python3/dist-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/wgsl.cpython-312.pyc
�

|�e�.��\�dZddlmZmZmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZddlmZdgZdZdZdZd	Zd
ZdZdZeeeeeeegZd
dj7e�zdzZddj7e�zdzZdj=ej>ej@ej>�Z!Gd�de�Z"y)z�
    pygments.lexers.wgsl
    ~~~~~~~~~~~~~~~~~~~~

    Lexer for the WebGPU Shading Language.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�
RegexLexer�include�bygroups�words�default)�Comment�Operator�Keyword�Name�Number�Punctuation�
Whitespace)�	unistring�	WgslLexerz\u000az\u000bz\u000cz\u000dz\u0085z\u2028z\u2029z[^��]�[z([{}][{}]+)|[{}]c�H�eZdZdZdZdZdgZdgZdgZe	dj�d�	�ejfZ
e	d
j�d�	�efZe	dj�d�	�ejfZe	dj�d�	�ej$fZe	d
j�d�	�ej$fZe	dj�d�	�ej$fZe	dj�d�	�ej$fZe	dj�d�	�ej$fZdefgdj3eee�ej<fdj3ee�ej<fdej@dfge!d�e!d�e"ejFdfe$d�ge!d�e!d�dejFdfdejJfe
eeeeeeede&jNfde&jNfde&jNfde&jNfd e&jNfd!e&jNfd"e&jNfd#e&jNfd$e&jPfd%e&jRfd&e&jRfd'e*fd(e*fd)e+fe"efgd*ej@fdej@d+fd,ej@dfd-ej@fgd.�Z,y/)0rzL
    Lexer for the WebGPU Shading Language.

    .. versionadded:: 2.15
    zWebGPU Shading Languagezhttps://www.w3.org/TR/WGSL/�wgslz*.wgslz	text/wgslzvar let const overridez\b)�suffixa
                alias
                break
                case
                const_assert
                continue
                continuing
                default
                diagnostic
                discard
                else
                enable
                false
                fn
                for
                if
                loop
                requires
                return
                struct
                switch
                true
                while
                a�

                NULL
                Self
                abstract
                active
                alignas
                alignof
                as
                asm
                asm_fragment
                async
                attribute
                auto
                await
                become
                binding_array
                cast
                catch
                class
                co_await
                co_return
                co_yield
                coherent
                column_major
                common
                compile
                compile_fragment
                concept
                const_cast
                consteval
                constexpr
                constinit
                crate
                debugger
                decltype
                delete
                demote
                demote_to_helper
                do
                dynamic_cast
                enum
                explicit
                export
                extends
                extern
                external
                fallthrough
                filter
                final
                finally
                friend
                from
                fxgroup
                get
                goto
                groupshared
                highp
                impl
                implements
                import
                inline
                instanceof
                interface
                layout
                lowp
                macro
                macro_rules
                match
                mediump
                meta
                mod
                module
                move
                mut
                mutable
                namespace
                new
                nil
                noexcept
                noinline
                nointerpolation
                noperspective
                null
                nullptr
                of
                operator
                package
                packoffset
                partition
                pass
                patch
                pixelfragment
                precise
                precision
                premerge
                priv
                protected
                pub
                public
                readonly
                ref
                regardless
                register
                reinterpret_cast
                require
                resource
                restrict
                self
                set
                shared
                sizeof
                smooth
                snorm
                static
                static_assert
                static_cast
                std
                subroutine
                super
                target
                template
                this
                thread_local
                throw
                trait
                try
                type
                typedef
                typeid
                typename
                typeof
                union
                unless
                unorm
                unsafe
                unsized
                use
                using
                varying
                virtual
                volatile
                wgsl
                where
                with
                writeonly
                yield
                a�
          read write read_write
          function private workgroup uniform storage
          perspective linear flat
          center centroid sample
          vertex_index instance_index position front_facing frag_depth
              local_invocation_id local_invocation_index
              global_invocation_id workgroup_id num_workgroups
              sample_index sample_mask
          rgba8unorm
          rgba8snorm
          rgba8uint
          rgba8sint
          rgba16uint
          rgba16sint
          rgba16float
          r32uint
          r32sint
          r32float
          rg32uint
          rg32sint
          rg32float
          rgba32uint
          rgba32sint
          rgba32float
          bgra8unorm
          aQ
          bool
          f16
          f32
          i32
          sampler sampler_comparison
          texture_depth_2d
          texture_depth_2d_array
          texture_depth_cube
          texture_depth_cube_array
          texture_depth_multisampled_2d
          texture_external
          texture_external
          u32
          a*
          array
          atomic
          mat2x2
          mat2x3
          mat2x4
          mat3x2
          mat3x3
          mat3x4
          mat4x2
          mat4x3
          mat4x4
          ptr
          texture_1d
          texture_2d
          texture_2d_array
          texture_3d
          texture_cube
          texture_cube_array
          texture_multisampled_2d
          texture_storage_1d
          texture_storage_2d
          texture_storage_2d_array
          texture_storage_3d
          vec2
          vec3
          vec4
          z{
          vec2i vec3i vec4i
          vec2u vec3u vec4u
          vec2f vec3f vec4f
          vec2h vec3h vec4h
          z�
          mat2x2f mat2x3f mat2x4f
          mat3x2f mat3x3f mat3x4f
          mat4x2f mat4x3f mat4x4f
          mat2x2h mat2x3h mat2x4h
          mat3x2h mat3x3h mat3x4h
          mat4x2h mat4x3h mat4x4h
          zE[\u0020\u0009\u000a\u000b\u000c\u000d\u0085\u200e\u200f\u2028\u2029]+z	//{}*{}{}z//{}*{}z/\*�
block_comment�
blankspace�commentsz#pop�@�	attributez(true|false)\bz0[fh]z[1-9][0-9]*[fh]z%[0-9]*\.[0-9]+([eE][+-]?[0-9]+)?[fh]?z%[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?[fh]?z[0-9]+[eE][+-]?[0-9]+[fh]?z60[xX][0-9a-fA-F]*\.[0-9a-fA-F]+([pP][+-]?[0-9]+[fh]?)?z60[xX][0-9a-fA-F]+\.[0-9a-fA-F]*([pP][+-]?[0-9]+[fh]?)?z%0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?z0[xX][0-9a-fA-F]+[iu]?z[1-9][0-9]*[iu]?z0[iu]?z[{}()\[\],\.;:]z->z[+\-*/%&|<>^!~=]z[^*/]+z#pushz\*/z[*/])rrr�rootrN)-�__name__�
__module__�__qualname__�__doc__�name�url�aliases�	filenames�	mimetypesr�splitr
�Declaration�keyword_decl�keywords�Reserved�keyword_reservedr�Builtin�predeclared_enums�predeclared_types�predeclared_type_generators�predeclared_type_alias_vectors�predeclared_type_alias_matricesr�format�NotLineEndRE�CR�LFr�Single�	LineEndRE�	Multiliner�ident_pattern_token�	Decoratorr�Constantr�Float�Hex�Integerr
r	�tokens���6/usr/lib/python3/dist-packages/pygments/lexers/wgsl.pyrr!sS���
%�D�
'�C��h�G��
�I��
�I��2�8�8�:�%�H�'�J]�J]�^�L���.�E�G�E�/+�.-4�/5�H�4�R�d�E�G�E�eR+�d-4�,<�,<�eR>��j� �4�e�g�e�5%�4'+�l�l�54��:� ��e�g�e�%�'+�l�l�4��"$)�*�6�e�g�e�7$%�6'+�l�l�7#4��>',�-�
�e�g�e�'%�
'+�l�l�&4�"�(-�.��e�g�e�(%�'+�l�l�'4�#�V�Wa�b�
��
 �
 ��b��
4�g�n�n�E�
�
�
�|�I�
6����G�
�W�&�&��8�
�
�L�!��J��
 �$�.�.��8��F�O�	
�
�L�!��J��
�4�>�>�;�/��� 0� 0�1����
��'�*�+�
�v�|�|�$�
����.�
5�v�|�|�D�
5�v�|�|�D�
*�F�L�L�9�G����U�
F����U�
5�v�|�|�D�'��
�
�3�!�&�.�.�1�
����'� ��-�
�K� �
 �(�+�!�$�'�w?
�D��)�)�*�
�W�&�&��0�
�W�&�&��/�
�g�'�'�(�
�eY�FrAN)#r �pygments.lexerrrrrr�pygments.tokenrr	r
rrr
r�pygmentsr�uni�__all__r5�VT�FFr4�NextLine�LineSep�ParaSep�LineEndCodePoints�joinr3r7r2�	xid_start�xid_continuer9rr@rArB�<module>rQs����I�H�$�$�$�%��-������������
��
����2�b��'�'�:���b�g�g�/�0�0�3�6���"�'�'�+�,�,�s�2�	�)�/�/��
�
�c�>N�>N�s�}�}�]��v�
�vrA