YBFj8dZddlZddlmZmZmZmZmZmZddl m Z m Z m Z m Z mZmZmZmZmZmZgdZGddeZGdd eZGd d eZGd d eZGddeZdS)z pygments.lexers.installers ~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for installer/packager DSLs and formats. :copyright: Copyright 2006-present by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerincludebygroupsusingthisdefault) TextCommentOperatorKeywordNameString PunctuationGenericNumber Whitespace) NSISLexer RPMSpecLexerDebianSourcesLexerSourcesListLexerDebianControlLexerc eZdZdZdZdZgdZddgZdgZdZ e j Z d e eefd ejfd ejd fd ejdfedededdejfdejfdefdefg de eeeejfde ejeejfde ejefdefdefdefdefdejfgdej fgdej!jfd ej!fd!ej"j#fd"ej"fgd ejd#fd$ej$fedd%ejfgd ejd#fd$ej$fedd&ejfgd'Z%d(S))rz For NSIS scripts. NSISzhttp://nsis.sourceforge.net/)nsisnsinshz*.nsiz*.nshz text/x-nsis1.6z ([;#].*)(\n)'.*?'" str_double` str_backtickmacrointerpolbasicz\$\{[a-z_|][\w|]*\}z /[a-z_]\w*\s+z[\w.]+z$(\n)(Function)(\s+)([._a-z][.\w]*)\bz#\b([_a-z]\w*)(::)([a-z][a-z0-9]*)\bz\b([_a-z]\w*)(:)z!(\b[ULS]|\B)([!<>=]?=|\<\>?|\>)\Bz[|+-]z\\a\b(Abort|Add(?:BrandingImage|Size)|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient)|BrandingText|BringToFront|Call(?:InstDLL)?|(?:Sub)?Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|Create(?:Directory|Font|Shortcut)|Delete(?:INI(?:Sec|Str)|Reg(?:Key|Value))?|DetailPrint|DetailsButtonText|Dir(?:Show|Text|Var|Verify)|(?:Disabled|Enabled)Bitmap|EnableWindow|EnumReg(?:Key|Value)|Exch|Exec(?:Shell|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read(?:Byte)?|Seek|Write(?:Byte)?)?|Find(?:Close|First|Next|Window)|FlushINI|Function(?:End)?|Get(?:CurInstType|CurrentAddress|DlgItem|DLLVersion(?:Local)?|ErrorLevel|FileTime(?:Local)?|FullPathName|FunctionAddress|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Inst(?:ProgressFlags|Type(?:[GS]etText)?)|Int(?:CmpU?|Fmt|Op)|IsWindow|LangString(?:UP)?|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|MessageBox|MiscButtonText|Name|Nop|OutFile|(?:Uninst)?Page(?:Ex(?:End)?)?|PluginDir|Pop|Push|Quit|Read(?:(?:Env|INI|Reg)Str|RegDWORD)|Reboot|(?:Un)?RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|Section(?:Divider|End|(?:(?:Get|Set)(?:Flags|InstTypes|Size|Text))|Group(?:End)?|In)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress(?:ionLevel|or(?:DictSize)?)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|Error(?:s|Level)|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|ShellVarContext|Silent|StaticBkColor)|Show(?:(?:I|Uni)nstDetails|Window)|Silent(?:Un)?Install|Sleep|SpaceTexts|Str(?:CmpS?|Cpy|Len)|SubSection(?:End)?|Uninstall(?:ButtonText|(?:Sub)?Caption|EXEName|Icon|Text)|UninstPage|Var|VI(?:AddVersionKey|ProductVersion)|WindowIcon|Write(?:INIStr|Reg(:?Bin|DWORD|(?:Expand)?Str)|Uninstaller)|XPStyle)\ba\b(CUR|END|(?:FILE_ATTRIBUTE_)?(?:ARCHIVE|HIDDEN|NORMAL|OFFLINE|READONLY|SYSTEM|TEMPORARY)|HK(CC|CR|CU|DD|LM|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_(?:CONFIG|USER)|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON[1-4]|ICON(?:EXCLAMATION|INFORMATION|QUESTION|STOP)|OK(?:CANCEL)?|RETRYCANCEL|RIGHT|SETFOREGROUND|TOPMOST|USERICON|YESNO(?:CANCEL)?)|SET|SHCTX|SW_(?:HIDE|SHOW(?:MAXIMIZED|MINIMIZED|NORMAL))|admin|all|auto|both|bottom|bzip2|checkbox|colored|current|false|force|hide|highest|if(?:diff|newer)|lastused|leave|left|listonly|lzma|nevershow|none|normal|off|on|pop|push|radiobuttons|right|show|silent|silentlog|smooth|textonly|top|true|try|user|zlib)\bz\!(addincludedir(?:dir)?|addplugindir|appendfile|cd|define|delfilefile|echo(?:message)?|else|endif|error|execute|if(?:macro)?n?(?:def)?|include|insertmacro|macro(?:end)?|packhdr|search(?:parse|replace)|system|tempfilesymbol|undef|verbose|warning)\bz \$(R?[0-9])as\$(ADMINTOOLS|APPDATA|CDBURN_AREA|COOKIES|COMMONFILES(?:32|64)|DESKTOP|DOCUMENTS|EXE(?:DIR|FILE|PATH)|FAVORITES|FONTS|HISTORY|HWNDPARENT|INTERNET_CACHE|LOCALAPPDATA|MUSIC|NETHOOD|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES(?:32|64)|QUICKLAUNCH|RECENT|RESOURCES(?:_LOCALIZED)?|SENDTO|SM(?:PROGRAMS|STARTUP)|STARTMENU|SYSDIR|TEMP(?:LATES)?|VIDEOS|WINDIR|\{NSISDIR\})z#\$(CMDLINE|INSTDIR|OUTDIR|LANGUAGE)z \$[a-z_]\w*#popz\$(\\[nrt"]|\$)z[^"]+z[^`]+)rootr%r#r$r r"N)&__name__ __module__ __qualname____doc__nameurlaliases filenames mimetypes version_addedre IGNORECASEflagsrr rrSingleDoubleBacktickrr Pseudor Attributer Function NamespacerLabelr ConstantPreprocBuiltinVariableGlobalEscapetokensHC:\PYTHON\_runtimes\venv\Lib\site-packages\pygments/lexers/installers.pyrrs7 D (C$$$G'"IIM MEhhw ;; < v} % 6=, / 6?N 3 GG   GJ   GG   #W^ 4 DN + Z    5 Xj':t} E E G 3 Xg'dm D D F ((4:{"C"C D 18 < x K %J$K% %L&(,} 6_? B$O  - T\0 1K \  4T]5I J T] +  6=& )  / GJ   v} %  6=& )  / GJ   v} %  OmmFFFrFrceZdZdZdZdgZdgZdgZdZdZ dZ d e fe d gd e zd ze ejed fdefdefgdejfd e zd ze ejed fdefdefgdejd fdejfe ddejfge dde ejeeefdejdfdejdfd e zd ze ejefdefe ddejfdejdfdefdefg de jfde jfde e jefgd ejfd!ejfd"ej fd#ej j!fd$ej"fgd%Z#d&S)'rz" For RPM ``.spec`` files. RPMSpecspecz*.specztext/x-rpm-specz>https://rpm-software-management.github.io/rpm/manual/spec.htmlrzS(?:package|prep|build|install|clean|check|pre[a-z]*|post[a-z]*|trigger[a-z]*|files)z#.*$r%z^(%z)(.*)$r'r&.z\*.*$rz/\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})r$r#z(?i)^(Name|Version|Release|Epoch|Summary|Group|License|Packager|Vendor|Icon|URL|Distribution|Prefix|Patch[0-9]*|Source[0-9]*|Requires\(?[a-z]*\)?|[a-z]+Req|Obsoletes|Suggests|Provides|Conflicts|Build[a-z]+|[a-z]+Arch|Auto[a-z]+)(:)(.*)$z ^%description descriptionz ^%changelog changelogzo%(attr|defattr|dir|doc(?:dir)?|setup|config(?:ure)?|make(?:install)|ghost|patch[0-9]+|find_lang|exclude|verify)rstringz %define.*$z%\{\!\?.*%define.*\}z+(%(?:if(?:n?arch)?|else(?:if)?|endif))(.*)$z%\{?__[a-z_]+\}?z'%\{?_([a-z_]+dir|[a-z_]+path|prefix)\}?z %\{\?\w+\}z\$\{?RPM_[A-Z0-9_]+\}?z%\{[a-zA-Z]\w+\})r(rLrMrNr%r#r$N)$r)r*r+r,r-r/r0r1r.r2 _directivesr rrr Decoratorr rr Subheadingrr7rCHeadingrrrr r6r?r;r9rArBr>rDrErFrGrrsM DhG I"#I JCM5K g  GG   k !H , Xdnd + +V 5 Z 4L  w) * k !H , Xdnd + +V 5 Z 4L  6=& ) ? O GJ   6= !   GG  ;Xgo{EE$KK @ @  B t~} = T^[ 9 k !H ,hht~t.L.L ML   GJ   v} % 6=( + Z 4L# (GO , $go 6 ; Xgot , , . !$- 0 7 H DM * & (< = '"2 3  c88FFFrFrc~eZdZdZdZdgZdgZdZdZde e e e dfd e e e e e fgd ed fd efgd ZdS)rz5 Lexer that highlights debian.sources files. zDebian Sources filezdebian.sourcesz *.sourcesz2.19zihttps://manpages.debian.org/bookworm/apt/sources.list.5.en.html#THE_DEB_AND_DEB-SRC_TYPES:_GENERAL_FORMATz^(Signed-By)(:)(\s*) signed-by"^([a-zA-Z\-0-9\.]*?)(:)(\s*)(.*?)$z% -----END PGP PUBLIC KEY BLOCK-----\nr'z.+\n)r(rTN)r)r*r+r,r-r/r0r2r.rr rrrr rDrErFrGrrs !D G IM uC%hhw Z&P&PR] ^ 2 Xg{J ? ? A 6tV D dO  FFFrFrc eZdZdZdZgdZdgZdZdgZdZ de fd e fd e e e d fgd e d fd ejfdefdejdfdefde dfgdejd fd ejfdejfdejfgd e dfdedfde fde jfgdZdZdS)rz: Lexer that highlights debian sources.list files. zDebian Sourcelist) debsources sourceslist sources.listrYz0.7z application/x-debian-sourceslistz#https://wiki.debian.org/SourcesListr&z#.*?$z^(deb(?:-src)?)(\s+) distributionr'z \$\(ARCH\)z[^\s$[]+z\[escaped-distributionz\$ componentsz\]z[^\]$]+z#pop:2$z\S+)r(rZr[r\c|D]C}|}|ds|drdSDdS)Nzdeb zdeb-src T) splitlinesstrip startswith)textlines rG analyse_textzSourcesListLexer.analyse_textseOO%%  D::<`` outputs. zDebian Control filez>https://www.debian.org/doc/debian-policy/ch-controlfields.html debcontrolcontrolz0.9z^(Description)rLz*^(Maintainer|Uploaders|Changed-By)(:)(\s*) maintainerz3^((?:Build-|Pre-)?Depends(?:-Indep|-Arch)?)(:)(\s*) package_listzJ^(Recommends|Suggests|Enhances|Breaks|Replaces|Provides|Conflicts)(:)(\s*)z$^((?:Python-)?Version)(:)(\s*)(\S+)$z$^((?:Installed-)?Size)(:)(\s*)(\S+)$z#^(MD5Sum|SHA1|SHA256)(:)(\s*)(\S+)$rUz<[^>]+>$r'z<[^>]+>z,\n?z[^,<]+$z[^,<]+z(.*)(Homepage)(: )(\S+)z:.*\nz .*\nz#(\$)(\{)(\w+)(\s*)(:)(\s*)(\w+)(\})z\(package_list_versz\|z\n\sz\nz[,\s]z[+.a-zA-Z0-9-]+z(\[)(!?)(.*?)(\])z\)z([><=]+)(\s*)([^)]+))r(rjrLrkrlN)r)r*r+r,r-r.r/r0r2r rrrrrrStrongr r Classrr Entityr;rDrErFrGrr%sF !D JCY'G IM 7 : Xg{J 7 7  D Xg{J 7 7 I Z Xg{J 7 7 I 4 Xg{J ? ? A 4 Xg{J ? ? A 3 Xg{J ? ? A 2 Xg{J ? ? A &'.& 1  ( j ! v &    ( XdFD$* 5 5 7 w~ & t  GFOO  4 Xh T[*!:t[BB CK!4 5 H  j ! J ' t   / !88K4;P[#\#\ ]  K ( $hhxV&L&L M [11FFFrFr)r,r3pygments.lexerrrrrrrpygments.tokenr r r r r rrrrr__all__rrrrrrErFrGrss NNNNNNNNNNNNNNNN------------------------ ! ! ! zzzzz zzzzGGGGG:GGGT0-----z---`;;;;;;;;;;rF