a
    ñ»jû  ã                   @   sZ   d Z ddlmZmZmZ ddlmZmZmZm	Z	m
Z
mZmZmZ dgZG dd„ deƒZdS )zÛ
    pygments.lexers.meson
    ~~~~~~~~~~~~~~~~~~~~~

    Pygments lexer for the Meson build system

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Ú
RegexLexerÚwordsÚinclude)ÚCommentÚNameÚNumberÚPunctuationÚOperatorÚKeywordÚStringÚ
WhitespaceÚ
MesonLexerc                   @   sö   e Zd ZdZdZdZddgZg d¢ZdgZdZ	d	e
fd
ejfdejfdejfdejfedƒedƒedƒdefdefg
defdefgeddd�efgdejfdefdefeddd�ejfedƒeddd�ejjfgedddd �ejfd!ejfgd"œZd#S )$r   aA  Meson language lexer.

    The grammar definition use to transcribe the syntax was retrieved from
    https://mesonbuild.com/Syntax.html#grammar for version 0.58.
    Some of those definitions are improperly transcribed, so the Meson++
    implementation was also checked: https://github.com/dcbaker/meson-plus-plus.
    ÚMesonzhttps://mesonbuild.com/Úmesonúmeson.build)r   zmeson.optionszmeson_options.txtztext/x-mesonz2.10z#.*?$z'''.*'''z[1-9][0-9]*z0o[0-7]+z0x[a-fA-F0-9]+ÚstringÚkeywordsÚexprz[a-zA-Z_][a-zA-Z_0-9]*z\s+z*[']{3}([']{0,2}([^\\']|\\([\s\S])))*[']{3}z'.*?(?<!\\)(\\\\)*?')ÚifÚelifÚelseÚendifZforeachZ
endforeachÚbreakÚcontinuez\b)Úsuffixz(in|and|or|not)\bz([\*/%\+-]=?|==|!=|=)z[\[\]{}:().,?])ÚtrueÚfalseÚbuiltins)r   Zbuild_machineZhost_machineZtarget_machine)2Zadd_global_argumentsZadd_global_link_argumentsZadd_languagesZadd_project_argumentsZadd_project_link_argumentsZadd_test_setupÚassertZ	benchmarkZboth_librariesZbuild_targetZconfiguration_dataZconfigure_fileZcustom_targetZdeclare_dependencyÚ
dependencyZdisablerÚenvironmentÚerrorÚ
executableÚfilesZfind_libraryZfind_programÚ	generatorÚ
get_optionZget_variableZinclude_directoriesÚinstall_dataÚinstall_headersZinstall_manZinstall_subdirZis_disablerZis_variableÚjarZ
join_pathsZlibraryÚmessageÚprojectÚrangeÚrun_commandZset_variableZshared_libraryZshared_moduleZstatic_libraryÚsubdirZsubdir_doneZ
subprojectÚsummaryÚtestZvcs_tagÚwarningz(?<!\.))Úprefixr   z(?<!\.)import\b)Úrootr   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚ	mimetypesÚversion_addedr   r   ÚSingler   ÚIntegerÚOctÚHexr   r   r   r   r
   r	   ÚWordr   ÚConstantÚVariableÚMagicÚBuiltinÚ	NamespaceÚtokens© rH   rH   ú;E:\soccer\ml_env\Lib\site-packages\pygments/lexers/meson.pyr      s^   öþ
ö
öÿúúú4Ë5Ë6ÈÔN)r6   Zpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   r   Ú__all__r   rH   rH   rH   rI   Ú<module>   s   
(