a
    ¨ˆc0  ã                   @   sb   d Z ddl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-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
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ddgZdg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.

    .. versionadded:: 2.10
    ZMesonzhttps://mesonbuild.com/Úmesonzmeson.buildzmeson_options.txtztext/x-mesonz#.*?$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}([^\\']|\\(.|\n)))*[']{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Ú	mimetypesr   r   ÚSingler   ZIntegerÚOctZHexr   r   r   r   r
   r	   ÚWordr   ÚConstantÚVariableZMagicZBuiltinÚ	NamespaceÚtokens© rA   rA   úX/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pygments/lexers/meson.pyr       s\   öþ
ö
öÿúúú4Ë5Ë6ÈÔ)r4   ÚreZpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   r   Ú__all__r   rA   rA   rA   rB   Ú<module>   s
   
(