|edZddlZddlmZmZmZddlmZmZm Z m Z m Z m Z m Z mZgdZGddeZGdd eZGd d eZy) z pygments.lexers.diff ~~~~~~~~~~~~~~~~~~~~ Lexers for diff/patch formats. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerincludebygroups)TextCommentOperatorKeywordNameGenericLiteral Whitespace) DiffLexerDarcsPatchLexer WDiffLexerc TeZdZdZdZddgZddgZddgZd d ee e e fd ee je fd ee je fd ee je fdee je fdee j e fdee j e fdee e fgiZdZy)rz> Lexer for unified or context-style diffs or patches. Diffdiffudiffz*.diffz*.patchz text/x-diffz text/x-patchrootz ( )(.*)(\n)z (!.*|---)(\n)z((?:< |-).*)(\n)z((?:> |\+).*)(\n)z*(@.*|\d(?:,\d+)?(?:a|c|d)\d+(?:,\d+)?)(\n)z((?:[Ii]ndex|diff).*)(\n)z (=.*)(\n)(.*)(\n)c:|dddk(ry|dddk(ry|dddk(ryy) NzIndex: Tzdiff z--- g?)texts 6/usr/lib/python3/dist-packages/pygments/lexers/diff.py analyse_textzDiffLexer.analyse_text.s: 8y  8w  8v  N)__name__ __module__ __qualname____doc__namealiases filenames mimetypesrr rr StrongDeletedInserted SubheadingHeadingtokensrrrrrrs DwG9%I/I  Xj$ C D x C D (7??J"G H !8G,<,z\{z\}z/(\[)((?:TAG )?)(.*)(\n)(.*)(\*\*)(\d+)(\s?)(\])z+(\[)((?:TAG )?)(.*)(\n)(.*)(\*\*)(\d+)(\s?)commentz New patches:zContext:zPatch bundle hash:z(\s*)(%s)(.*)(\n)|z\+insert-deleterz [^\]].*\nz\]#popz\nz \[_[^_]*_] specialTextz\[z[^\n\[]+)rr9r?r;r=N)r r!r"r#r$r%r&DPATCH_KEYWORDSrrr r r r Dater r,joinrr*r)rrr-rrrrr7s DjG^,I"O 8  8  H  H  ? hz4llJ: ;< hz4llJ01: <goo . '// * "GOO 4 !CHH_$= =WdJ? A G$$h / 7??H - (44 5% *7 # Hf % J ' H % M " G$$ % '** + M " GOO $ '// * E'Frrc eZdZdZdZdZdgZdgZgZe je jzZ dZ dZdZd Zd Ze ej&d feej(d feefd efge ej&dfeej&dfeej&dfeej&dfeej&fd ej&fgeej(dfe ej(dfeej(dfeej(dfeej(fd ej(fgdZy)ra  A wdiff lexer. Note that: * It only works with normal output (without options like ``-l``). * If the target files contain "[-", "-]", "{+", or "+}", especially they are unbalanced, the lexer will get confused. .. versionadded:: 2.2 WDiffz#https://www.gnu.org/software/wdiff/wdiffz*.wdiffz\{\+z\+\}z\[\-z\-\]z [^{}[\]+-]+inserteddeleted.z#pushr>)rrFrGN)r r!r"r#r$urlr%r&r're MULTILINEDOTALLflagsins_opins_cldel_opdel_clnormalr r*r)rr-rrrrrqsG  D /CiG II LL299 $E F F F F FW%%z 2 W__i 0 TN 4L  W%%w / W%%w / W%%v . W%%v . W%% & 7## $ W__g . W__g . W__f - W__f - W__ % 7?? # !Frr)r#rJpygments.lexerrrrpygments.tokenrrrr r r r r __all__rrrrrrrVsQ 88 9  F7j7t77r