3

V'íckã@s^dZddlmZmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZdgZGdd„deƒZdS)zÕ
    pygments.lexers.promql
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexer for Prometheus Query Language.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é)Ú
RegexLexerÚbygroupsÚdefaultÚwords)ÚCommentÚKeywordÚNameÚNumberÚOperatorÚPunctuationÚStringÚ
WhitespaceÚPromQLLexerc0@s8eZdZdZdZdZdgZdgZededde	fZ
edfdde	fZedgdde	jfZ
dKefdLefdMefe
ee
dNefdOejfdPejfdQejfdRefdSefdTejfdUejfdVeeeeƒfdWedXfdYefdZed[fd\ed]fgd^ed_fdKefdLefdMefd`eejeeeeeeƒfgdaed_fdNefgdYed_fdWedbfed_ƒgdcœZddS)hrz¦
    For PromQL queries.

    For details about the grammar see:
    https://github.com/prometheus/prometheus/tree/master/promql/parser

    .. versionadded: 2.7
    ZPromQLz=https://prometheus.io/docs/prometheus/latest/querying/basics/Zpromqlz*.promqlÚboolÚbyÚ
group_leftÚgroup_rightÚignoringÚoffsetÚonÚwithoutz\b)ÚsuffixÚsumÚminÚmaxÚavgÚgroupÚstddevÚstdvarÚcountÚcount_valuesÚbottomkÚtopkÚquantileÚabsÚabsentÚabsent_over_timeÚ
avg_over_timeÚceilÚchangesÚ	clamp_maxÚ	clamp_minÚcount_over_timeÚday_of_monthÚday_of_weekÚ
days_in_monthÚdeltaÚderivÚexpÚfloorÚhistogram_quantileÚholt_wintersÚhourÚideltaÚincreaseÚirateÚ
label_joinÚ
label_replaceÚlnÚlog10Úlog2Ú
max_over_timeÚ
min_over_timeÚminuteÚmonthÚpredict_linearÚquantile_over_timeÚrateÚresetsÚroundÚscalarÚsortÚ	sort_descÚsqrtÚstddev_over_timeÚstdvar_over_timeÚ
sum_over_timeÚtimeÚ	timestampÚvectorÚyearz\nz\s+ú,z[1-9][0-9]*[smhdwy]z-?[0-9]+\.[0-9]+z-?[0-9]+z#.*?$z(\+|\-|\*|\/|\%|\^)z==|!=|>=|<=|<|>z
and|or|unlessz[_a-zA-Z][a-zA-Z0-9_]+z(["\'])(.*?)(["\'])z\(Úfunctionz\)z\{Úlabelsz\[Úrangez\}z#popzB([_a-zA-Z][a-zA-Z0-9_]*?)(\s*?)(=~|!=|=|!~)(\s*?)("|\')(.*?)("|\')z\]z#push)ÚrootrUrVrTN)rrrrrrrr)rrrrrrrrr r!r"r#)/r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrR)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesrrZ
base_keywordsZaggregator_keywordsZReservedZfunction_keywordsr
rrr	ZFloatZIntegerrÚSingler
ÚWordrÚVariablerZLabelrÚtokens©rdrdú:/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/promql.pyrsà
N)r[Zpygments.lexerrrrrZpygments.tokenrrrr	r
rrr
Ú__all__rrdrdrdreÚ<module>	s(