K i dZddlZddlmZmZmZmZddlmZm Z m Z m Z m Z m Z mZgdZGddeZGdd eZGd d eZy) a pygments.lexers.typoscript ~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for TypoScript `TypoScriptLexer` A TypoScript lexer. `TypoScriptCssDataLexer` Lexer that highlights markers, constants and registers within css. `TypoScriptHtmlDataLexer` Lexer that highlights markers, constants and registers within html tags. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerincludebygroupsusing)TextCommentNameStringNumberOperator Punctuation)TypoScriptLexerTypoScriptCssDataLexerTypoScriptHtmlDataLexerc JeZdZdZdZdgZdZdZddee e je fdee je e je je jfd ee e je je e je je fd efd efd efd e fde fgiZy)rzS Lexer that highlights markers, constants and registers within css blocks. TypoScriptCssDatatyposcriptcssdata3http://docs.typo3.org/typo3cms/TyposcriptReference/2.2root(.*)(###\w+###)(.*)%(\{)(\$)((?:[\w\-]+\.)*)([\w\-]+)(\})+(.*)(\{)([\w\-]+)(\s*:\s*)([\w\-]+)(\})(.*)\s+/\*(?:(?!\*/).)*\*/G(?,:=.*%+|]z[\w"\-!/&;(){}]+N)__name__ __module__ __qualname____doc__namealiasesurl version_addedrr r ConstantSymbolr rrtokens`/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pygments/lexers/typoscript.pyrrs D"#G ?CM  #XfdmmV%L M 5 fmmXt}}mmV]]4 5< ffmmT]]HmmV]]F< =TN #W - W  f % & )' Fr*rc^eZdZdZdZdgZdZdZddejfde fd e e eje fd e e jeejeje jfd e e e jejeeje je fd efd e fde fgiZy)rzR Lexer that highlights markers, constants and registers within html tags. TypoScriptHtmlDatatyposcripthtmldatarrrz(INCLUDE_TYPOSCRIPT)(EXT|FILE|LLL):[^}\n"]*rrrrrz[\w"\-!/&;(){}#]+N)rrr r!r"r#r$r%r Classr rr&r'r rr(r)r*r+rr@s D#$G ?CM  $djj 1 ' 0 #XfdmmV%L M 5 fmmXt}}mmV]]4 5< ffmmT]]HmmV]]F< =TN f % !6 *' Fr*rc.eZdZdZdZdZdgZdgZdgZdZ e je jzZ eded ed ed ed ed edededededg deej"ej&eej"fdej*fdeeej.fdej0fdej0fdej0fdej0fdej*fgdefgdeefdefdeej0eej"eefgdej:fd ej<fd!ej&fgd"efd#eeefgd$efgd%efgd&ej"fgd'eej"eej&ej&ej"fd(eej"ej&eej&ej"fd)ej@fgd*e!fd+e!fd,e!fgd-efgd. Z"y/)0rz$ Lexer for TypoScript code. TypoScriptr typoscriptz *.typoscriptztext/x-typoscriptrcommentconstanthtmllabel whitespacekeywords punctuationoperator structureliteralothera (?i)(\[)(browser|compatVersion|dayofmonth|dayofweek|dayofyear|device|ELSE|END|GLOBAL|globalString|globalVar|hostname|hour|IP|language|loginUser|loginuser|minute|month|page|PIDinRootline|PIDupinRootline|system|treeLevel|useragent|userFunc|usergroup|version)([^\]]*)(\])z(?=[\w\-])(HTMLparser|HTMLparser_tags|addParams|cache|encapsLines|filelink|if|imageLinkWrap|imgResource|makelinks|numRows|numberFormat|parseFunc|replacement|round|select|split|stdWrap|strPad|tableStyle|tags|textStyle|typolink)(?![\w\-])a(?:(=?\s*]*>z &[^;\n]*;z-(?s)(_CSS_DEFAULT_STYLE)(\s*)(\()(.*(?=\n\)))z0x[0-9A-Fa-f]+t?z[0-9]+z (###\w+###)r/z*(?![^\w\-])([\w\-]+(?:/[\w\-]+)+/?)(\S*\n)z[,.]rz [{}()\[\]\\]rz#(\{)([\w\-]+)(\s*:\s*)([\w\-]+)(\})z%(#[a-fA-F0-9]{6}\b|#[a-fA-F0-9]{3}\b)rrz (\s*#\s*\n)z [\w"\-!/&;]+) rr9r8r6r=r7r:r;r<r5r4r>N)#rrr r!r"r$r# filenames mimetypesr%reDOTALL MULTILINEflagsrrr r'r r&rFunctionr Builtinr0rrrr HexIntegerr Charrr(r)r*r+rrcs D ?CnG I$%IM II $E I  J  FO G  L ! J  M " J  K I  G   % fmmT]]D&-- H  J359MM C Kh -  / 79=  D  JJ (@AE M3DJJ ? . >E# JTN U#:; < 6 " = djj$ u=S7T U W !&** -  ' T]] +  ( 0 : ff % '  k " h ' fmm , 6$-- 7 84 x 7 86v{{ C  X   #W - W %  d # IgFr*r)r!rApygments.lexerrrrrpygments.tokenrrr r r r r __all__rrrr)r*r+rMsT& ?? S Z F j Fujur*