U
    luf                     @   sV   d Z ddl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.dax
    ~~~~~~~~~~~~~~~~~~~

    Lexer for LilyPond.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerwords)CommentPunctuation
WhitespaceNameOperatorStringNumberTextDaxLexerc                   @   s   e Zd ZdZdZdgZdgZdZg Zde	fde
jfde
jfd	e
jd
feddddejfeddddejfdefdejfdedfdejfdejfdefdefdefgd	e
jd
fde
jdfde
jfde
jfgdejfdedfdefgdZd S )!r   z
    Lexer for Power BI DAX
    Referenced from: https://github.com/sql-bi/SyntaxHighlighterBrushDax

    .. versionadded:: 2.15
    ZDaxZdaxz*.daxz<https://learn.microsoft.com/en-us/dax/dax-function-referencez\s+z--.*\n?z//.*\n?z/\*multiline-comments(k  absZaccrintZaccrintmacosacoshZacotZacothZ
addcolumnsZaddmissingitemsallZallcrossfilteredZ	allexceptZallnoblankrowZallselectedZ	amordegrcZamorlincandZapproximatedistinctcountasinasinhatanatanhZaverageZaverageaZaveragexz	beta.distzbeta.invZbitandZ	bitlshiftZbitorZ	bitrshiftZbitxorZblankZ	calculateZcalculatetablecalendarZcalendarautoZceilingz
chisq.distzchisq.dist.rtz	chisq.invzchisq.inv.rtZclosingbalancemonthZclosingbalancequarterZclosingbalanceyearZcoalesceZcolumnstatisticsZcombinZcombinaZcombinevaluesZconcatenateZconcatenatexzconfidence.normzconfidence.tcontainsZcontainsrowZcontainsstringZcontainsstringexactconvertcoscoshZcotZcothcountZcountaZcountaxZ
countblankZ	countrowsZcountxZ	coupdaybsZcoupdaysZ
coupdaysncZcoupncdZcoupnumZcouppcdZcrossfilterZ	crossjoinZcumipmtZcumprinccurrencyZcurrentgroupZ
customdataZ	datatabledateZdateaddZdatediffZdatesbetweenZdatesinperiodZdatesmtdZdatesqtdZdatesytdZ	datevaluedaydbZddbdegreesZ
detailrowsZdiscZdistinctZdistinctcountZdistinctcountnoblankdivideZdollardeZdollarfrdurationZearlierZearliestZedateZeffectZ
endofmonthZendofquarterZ	endofyearZeomontherrorZevaluateandlogZevenexactexceptexpz
expon.distZfactfalsefilterfiltersfindZ	firstdateZfirstnonblankZfirstnonblankvalueZfixedfloorformatZfvgcdgenerateZgenerateallZgenerateseriesZgeomeanZgeomeanxgroupbyhashZhasonefilterZhasonevaluehourifzif.eagerZiferrorignoreindexintZ	intersectZintrateZipmtZisafterZisblankZiscrossfilteredZisemptyZiserrorZisevenZ
isfilteredZ	isinscopeZ	islogicalZ	isnontextZisnumberziso.ceilingZisoddZisonorafterZispmtZisselectedmeasureZ
issubtotalistextZkeepfiltersZkeywordmatchZlastdateZlastnonblankZlastnonblankvalueZlcmleftlenZlinestZlinestxlnloglog10ZlookupvaluelowermaxZmaxaZmaxxZ	mdurationZmedianZmedianxZmidminZminaminuteZminxmodmonthZmroundZnameofZnaturalinnerjoinZnaturalleftouterjoinZnetworkdaysZnextdayZ	nextmonthZnextquarterZnextyearZnominalZ	nonvisualz	norm.distznorm.invznorm.s.distz
norm.s.invnotnowZnperZoddZ	oddfpriceZ	oddfyieldZ	oddlpriceZ	oddlyieldoffsetZopeningbalancemonthZopeningbalancequarterZopeningbalanceyearorZorderbyZparallelperiodZpartitionbypathZpathcontainsZpathitemZpathitemreverse
pathlengthZ	pdurationzpercentile.exczpercentile.inczpercentilex.exczpercentilex.incZpermutpiZpmtzpoisson.distpowerZppmtZpreviousdayZpreviousmonthZpreviousquarterZpreviousyearZpriceZ	pricediscZpricematproductZproductxpvZquarterZquotientradiansZrandZrandbetweenzrank.eqZrankxZrateZreceivedrelatedZrelatedtableZremovefiltersreplaceZreptrightZrollupZrollupaddissubtotalZrollupgroupZrollupissubtotalroundZ	rounddownZrounduprowZrriZsameperiodlastyearsampleZsampleaxiswithlocalminmaxsearchsecondZselectcolumnsZselectedmeasureZselectedmeasureformatstringZselectedmeasurenameZselectedvaluesignsinsinhZslnsqrtZsqrtpiZstartofmonthZstartofquarterZstartofyearzstdev.pzstdev.szstdevx.pzstdevx.s
substituteZsubstitutewithindexsumZ	summarizeZsummarizecolumnsZsumxswitchZsydzt.distz	t.dist.2tz	t.dist.rtzt.invzt.inv.2ttantanhZtbilleqZ
tbillpriceZ
tbillyieldtimeZ	timevalueZtocsvtodayZtojsonZtopnZtopnperlevelZtopnskipZtotalmtdZtotalqtdZtotalytdZtreatasZtrimtruetruncZunicharunicodeunionupperZusercultureZuserelationshipusernameZuserobjectidZuserprincipalnameutcnowZutctodayvaluevalueszvar.pzvar.szvarx.pzvarx.sZvdbweekdayZweeknumZwindowZxirrZxnpvyearZyearfracyieldZ	yielddiscZyieldmatz(?i)z\b)prefixsuffix)atZascbooleanZbothZbycreater   datetimer   Zdefinedescdoubleevaluater(   integerZmeasurerB   noneorderreturnZsinglestartstringtablera   varrk   z:=|[-+*\/=^]z\b(IN|NOT)\b"r{   z0'(?:[^']|'')*'(?!')(?:\[[ \w]+\])?|\w+\[[ \w]+\]z
\[[ \w]+\]z(?<!\w)(\d+\.?\d*|\.\d+\b)z[\[\](){}`,.]z.*\nz\*/z#popz[^/*]+z[/*]z""z[^"]+)rootr   r{   N)__name__
__module____qualname____doc__namealiases	filenamesurl	mimetypesr   r   SingleZ	Multiliner   r   ZFunctionZBuiltinr   Wordr	   	Attributer
   r   r   ZEscapetokens r   r   7/tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/dax.pyr      sV   
D DF ^

N)r   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   r	   r
   r   __all__r   r   r   r   r   <module>   s   
(