j X S r SSKJrJr SSKJrJrJrJrJ r J
r
Jr S/r " S S\5 r
g)a
pygments.lexers.sieve
~~~~~~~~~~~~~~~~~~~~~
Lexer for Sieve file format.
https://tools.ietf.org/html/rfc5228
https://tools.ietf.org/html/rfc5173
https://tools.ietf.org/html/rfc5229
https://tools.ietf.org/html/rfc5230
https://tools.ietf.org/html/rfc5232
https://tools.ietf.org/html/rfc5235
https://tools.ietf.org/html/rfc5429
https://tools.ietf.org/html/rfc8580
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)
RegexLexerbygroups)CommentNameLiteralStringTextPunctuationKeyword
SieveLexerc
r \ rS rSrSrSrSS/rS/rSrSr S \
4S
\4S\R 4S\" \R \R 5 4S
\R" 4S\R$ 4S\" \R( \R( 5 4S\R, 4S\R. 4S\4S\R S4/S\4S\S4/S.rSrg)r z
Lexer for sieve format.
Sievez*.sivz*.sievesievez=https://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)z2.6z\s+z[();,{}\[\]]z(?i)requirea (?i)(:)(addresses|all|contains|content|create|copy|comparator|count|days|detail|domain|fcc|flags|from|handle|importance|is|localpart|length|lowerfirst|lower|matches|message|mime|options|over|percent|quotewildcard|raw|regex|specialuse|subject|text|under|upperfirst|upper|value)z(?i)(address|addflag|allof|anyof|body|discard|elsif|else|envelope|ereject|exists|false|fileinto|if|hasflag|header|keep|notify_method_capability|notify|not|redirect|reject|removeflag|setflag|size|spamtest|stop|string|true|vacation|virustest)z(?i)setz([0-9.]+)([kmgKMG])?z#.*$z/\*.*\*/z"[^"]*?"ztext:textz [^.].*?\nz^\.z#pop)rootr N)__name__
__module____qualname____firstlineno____doc__name filenamesaliasesurl
version_addedr r
r Namespacer r TagBuiltinDeclarationr Numberr Single Multiliner tokens__static_attributes__r H/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/lexers/sieve.pyr r s D)$IiG
ICM TN
k*
.
dhh
)
+K \\
" %
gnngnn
5
7
^^
XXv
C#
J 6"
[&)
K)Fr' N)r pygments.lexerr r pygments.tokenr r r r r r
r __all__r r r' r(