
    L&ih                        d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	m
Z
mZmZmZmZmZmZmZ ddlmZmZmZmZmZmZmZmZmZmZmZ ddlmZm Z  g d	Z! G d
 de	          Z" G d de	          Z# G d de	          Z$ G d de	          Z% G d de	          Z& G d de	          Z' G d de'          Z( G d de
          Z) G d de
          Z* G d de
          Z+ G d de	          Z, G d  d!e	          Z-dS )"z
    pygments.lexers.markup
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for non-HTML markup languages.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)XmlLexer)JavascriptLexer)CssLexer)	
RegexLexerDelegatingLexerincludebygroupsusingthisdo_insertionsdefaultwords)TextCommentOperatorKeywordNameStringNumberPunctuationGenericOther
Whitespace)get_bool_optClassNotFound)BBCodeLexerMoinWikiLexerRstLexerTexLexer
GroffLexerMozPreprocHashLexerMozPreprocPercentLexerMozPreprocXulLexerMozPreprocJavascriptLexerMozPreprocCssLexerMarkdownLexerTiddlyWiki5Lexerc                       e Zd ZdZdZdgZdgZdefdedfdefgd	efd
 e	e
j        ee          fd e	ee          fdedfgdZdS )r   zR
    A lexer that highlights BBCode(-like) syntax.

    .. versionadded:: 0.6
    BBCodebbcodeztext/x-bbcodez[^[]+z\[/?\w+tagz\[\s+z(\w+)(=)("?[^\s"\]]+"?)z(=)("?[^\s"\]]+"?)z\]#pop)rootr+   N)__name__
__module____qualname____doc__namealiases	mimetypesr   r   r	   r   	Attributer   r   tokens     c/home/geonatureadmin/si_en_reseau/tutos/venv/lib/python3.11/site-packages/pygments/lexers/markup.pyr   r      s          DjG !I t%(DM
 TN'Xdnh779 #Xh'') GV$

 FFFr9   r   c                      e Zd ZdZdZddgZg ZdgZej	        ej
        z  Zdefd eee          fd eej         ee          ej        e          fd	 eej        ej                  d
fdefd eeej        e          fd eeej        e          fdefd eeee          fdefdefdefdefgdej        dfdedfdej        fdej        fgdZdS )r   zI
    For MoinMoin (and Trac) Wiki markup.

    .. versionadded:: 0.7
    zMoinMoin/Trac Wiki markupz	trac-wikimoinztext/x-trac-wikiz^#.*$z(!)(\S+)z^(=+)([^=]+)(=+)(\s*#.+)?$z(\{\{\{)(\n#!.+)?	codeblockz(\'\'\'?|\|\||`|__|~~|\^|,,|::)z^( +)([.*-])( )z^( +)([a-z]{1,5}\.)( )z\[\[\w+.*?\]\]z(\[[^\s\]]+)(\s+[^\]]+?)?(\])z^----+$z[^\n\'\[{!_~^,|]+\n.z\}\}\}r-   z\{\{\{z#pushz[^{}]+)r.   r=   N)r/   r0   r1   r2   r3   r4   	filenamesr5   re	MULTILINE
IGNORECASEflagsr   r	   r   r   r   Headingr
   r   r   r   Builtin	NamespacePreprocr7   r8   r9   r:   r   r   >   s_         'DF#GI#$IL2=(E w((7D112*XgouuT{{GOVLLN "88DL$.#I#I;W/9$d!C!CD&t|T(J(JK(-Xgvw//1!!4(DM4L'
, f-g&(7?#
- FFFr9   r   c                      e Zd ZdZdZdZg dZddgZddgZe	j
        Zd	 Zd
ZdZd e	j        e           e	j        e          dZd eej        eej        eej        e          fd eej        eej        e          fd eee eed                    fd eee eed                    fd eee eed                    fd eee eed                    fd eee eed                    fd eee eed                    fdefd eeeej        ee eed                    fd eeeej         eed                    fd eeeej         eed                    fd eeeej        eej        ee eed                    fdej        fd eeej        e          fd e eed           eed                    fd  ee j!        ee e ee           f e"d          gd!efd"e d#fd$ ee e j#        e           fd%e fd& eej$        ej%                  fd' eej%        ej$                  fd(ej&        fd)ej'        fd*e fd+ej        fd,efd-efgd.e fd"ez   e d/fd0e fgd1Z(d2 Z)d3 Z*d4S )5r   an  
    For reStructuredText markup.

    .. versionadded:: 0.7

    Additional options accepted:

    `handlecodeblocks`
        Highlight the contents of ``.. sourcecode:: language``,
        ``.. code:: language`` and ``.. code-block:: language``
        directives with a lexer for the given language (default:
        ``True``).

        .. versionadded:: 0.8
    reStructuredTextz(https://docutils.sourceforge.io/rst.html)restructuredtextrstrestz*.rstz*.restz
text/x-rstztext/prs.fallenstein.rstc           	   #     K   ddl m} |                    d          t          |                    d          fV  |                    d          t
          |                    d          fV  |                    d          t          j        |                    d          fV  |                    d          t          |                    d          fV  |                    d          t
          |                    d          fV  |                    d          t          |                    d          fV  |                    d	          t
          |                    d	          fV  d }| j	        rB	  ||                    d          
                                          }n# t          $ r Y nw xY w|                    d
          }t          |          }||                    d          z   |                    d          z   |                    d          z   }|!|                    d
          t          |fV  d S g }|                    d          }d}|D ]]}	t          |	          |k    rC|                    t          |          dt
          |	d |         fgf           ||	|d          z  }X||	z  }^t!          ||                    |                    E d {V  d S )Nr   get_lexer_by_name                        	   
      T )pygments.lexersrP   startr   groupr   r   Wordr   handlecodeblocksstripr   lenr   
splitlinesappendr   get_tokens_unprocessed)
selfmatchrP   lexer	indentionindention_sizecodeins	codelineslines
             r:   _handle_sourcecodezRstLexer._handle_sourcecode   s     555555 kk!nnk5;;q>>9999kk!nndEKKNN2222kk!nnhmU[[^^;;;;kk!nnk5;;q>>9999kk!nndEKKNN2222kk!nngu{{1~~5555kk!nndEKKNN2222   	))%++a..*>*>*@*@AA    KKNN	YEKKNN*U[[__<u{{2N =++a..&$....F OOD))	 	 	D4yy>))

CIID$2G(H'IJKKK^__-- e&B&B4&H&HIIIIIIIIIIIs   60F' '
F43F4u   '")]}>’”»!?u   ‐‑‒–— z((?=$)|(?=[-/:.,; \n\x00z]))zH^(=+|-+|`+|:+|\.+|\'+|"+|~+|\^+|_+|\*+|\++|#+)([ \t]*\n)(.+)(\n)(\1)(\n)zc^(\S.*)(\n)(={3,}|-{3,}|`{3,}|:{3,}|\.{3,}|\'{3,}|"{3,}|~{3,}|\^{3,}|_{3,}|\*{3,}|\+{3,}|#{3,})(\n)z!^(\s*)([-*+])( .+\n(?:\1  .+\n)*)inlinestatez1^(\s*)([0-9#ivxlcmIVXLCM]+\.)( .+\n(?:\1  .+\n)*)z4^(\s*)(\(?[0-9#ivxlcmIVXLCM]+\))( .+\n(?:\1  .+\n)*)z$^(\s*)([A-Z]+\.)( .+\n(?:\1  .+\n)+)z*^(\s*)(\(?[A-Za-z]+\))( .+\n(?:\1  .+\n)+)z^(\s*)(\|)( .+\n(?:\|  .+\n)*)zl^( *\.\.)(\s*)((?:source)?code(?:-block)?)(::)([ \t]*)([^\n]+)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\8.*)?\n)+)z,^( *\.\.)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))z'^( *\.\.)(\s*)(_(?:[^:\\]|\\.)+:)(.*?)$z^( *\.\.)(\s*)(\[.+\])(.*?)$z9^( *\.\.)(\s*)(\|.+\|)(\s*)([\w:-]+?)(::)(?:([ \t]*)(.*))z^ *\.\..*(\n( +.*\n|\n)+)?z+^( *)(:(?:\\\\|\\:|[^:\n])+:(?=\s))([ \t]*)z!^(\S.*(?<!::)\n)((?:(?: +.*)\n)+)z2(::)(\n[ \t]*\n)([ \t]+)(.*)(\n)((?:(?:\3.*)?\n)+)\\.z``literalz(`.+?)(<.+?>)(`__?)z`.+?`__?z(`.+?`)(:[a-zA-Z0-9:-]+?:)?z(:[a-zA-Z0-9:-]+?:)(`.+?`)z\*\*.+?\*\*z\*.+?\*z\[.*?\]_z<.+?>z[^\\\n\[*`:]+r?   z[^`]+r-   `)r.   rq   ru   c                 V    t          |dd          | _        t          j        | fi | d S Nra   Tr   ra   r   __init__rg   optionss     r:   rz   zRstLexer.__init__  6     ,W6H$ O OD,,G,,,,,r9   c                    | d d         dk    r| dd         dk    rdS |                      d          }|                      d|dz             }|dk    r3|dz  dz   |k    r)| |dz            d	v r| |dz            | |dz
           k    rd
S d S d S d S d S )NrR   z..rS   r?   g333333?
rQ   z-=g      ?)find)textp1p2s      r:   analyse_textzRstLexer.analyse_text  s    8tQqS	S 0 03YYt__YYtR!V$$GGQ
b  RT
d""RT
d2a4j((3	 G  ""((r9   N)+r/   r0   r1   r2   r3   urlr4   r@   r5   rA   rB   rD   rp   closersunicode_delimitersescapeend_string_suffixr	   r   rE   r   r   r
   r   r   r   r`   r   Tagr   rH   Classr   Escaper   InterpolVariabler6   StrongEmphr7   rz   r   r8   r9   r:   r   r   k   sf         D
4C111G(#I9:ILE&J &J &JR *G?%BI&8999%BIg....0!XgotW_GOT3 34
<XgotW_dCCE 2XdFEE$h$?$?$?@@B BXdFEE$h$?$?$?@@BDXdFEE$h$?$?$?@@B 5XdFEE$h$?$?$?@@B:XdFEE$h$?$?$?@@B /XdHeeD&A&A&ABBD?! =Xk4TeD1113 34 8Xk455X3N3N3NOOQ -Xk455X3N3N3NOOQ JXk44!4t8)D)D)DF FG +GO<;XdDJ--/ 2XeeD11155X3N3N3NOOQ CXfmT664HHJGHo8
t TNFI&#Xffov668&!+XdmT^446*Xdndm446W^,&&!tx t$4L
$ v&&76N
WP PFd- - -	 	 	 	 	r9   r   c            
          e Zd ZdZdZddgZg dZddgZdefd	e	j
        fd
e	j
        fgdej        dfdedfdej        dfdedfdedfdef ed          defgde	j        f ed          defdefde	j
        fgdedfdedf ed          gdedfdedfde	j
        f ed          gde	j        fdef ed          gdZd  Zd!S )"r   z<
    Lexer for the TeX and LaTeX typesetting languages.
    TeXtexlatex)z*.texz*.auxz*.tocz
text/x-texztext/x-latexz%.*?\nz[{}]z[&_^]z\\\[displaymathz\\\(
inlinemathz\$\$z\$z\\([a-zA-Z]+|.)commandz\\$generalz[^\\$%&_^{}]+[0-9]+z[-=!+*/()\[\]]z[^=!+*/()\[\]\\$%&_^{}0-9-]+z\\\)r-   mathz\\\]z\[.*?\]z\*)r   r.   r   r   r   r   c                 L    dD ] }| d t          |                   |k    r dS !d S )N)z\documentclassz\inputz\documentstylez\relaxT)rc   )r   r^   s     r:   r   zTexLexer.analyse_textF  sC    ! 	 	EKSZZK E))tt *	 	r9   N)r/   r0   r1   r2   r3   r4   r@   r5   r   r   rF   r   Backtickr   r   r   r   r   r   r6   r   r7   r   r8   r9   r:   r   r     s         DgG+++I~.I  dl#t|$
 fo}5fl+fo}5FL))4WGIt$	
  /GI),dl;
 ff%FF#GFOO
 ff%ff%DL!GFOO	
 (GGFOO
E' 'FR    r9   r   c            
       0   e Zd ZdZdZg dZg dZddgZd ee	e
          dfd	edfd
e	df ed          g ed          d
e	fde	dfgdefdej        fdej        fdej        fdej        fde	dfgde	df ed          dej        fdefdefde	fgdZd ZdS )r    z
    Lexer for the (g)roff typesetting language, supporting groff
    extensions. Mainly useful for highlighting manpage sources.

    .. versionadded:: 0.6
    Groff)groffnroffman)z*.[1-9]z*.manz*.1pz*.3pmzapplication/x-troffz
text/troffz	(\.)(\w+)requestz\.z[^\\\n]+textlineescapesr>   r-   z	\\"[^\n]*z\\[fn]\wz\\\(.{2}z	\\.\[.*\]rt   z\\\nz	"[^\n"]+"z\d+z\S+r,   )r.   r   r   r   c                     | d d         dk    rdS | d d         dk    rdS | d d         dk    rdS | dd                                          r| d                                         rd	S d S d S )
NrQ   r?   FrS   z.\"TrT   z.TH g?)isalnumisspace)r   s    r:   r   zGroffLexer.analyse_textz  s    8s??58v48v4!9 	47??#4#4 	3	 	 	 	r9   N)r/   r0   r1   r2   r3   r4   r@   r5   r	   r   r   r   r   r   r   r   r   Doubler   r7   r   r8   r9   r:   r    r    M  sE         D'''G555I&5I 88D'22I>K+$
+GJ
 GI$D&!
 7#&-(&-(6=)V]#dI&
 D&!GI6=)VVTN
- F@    r9   r    c                      e Zd ZdZdZegZg Zg Zdej	        dfde
fgd eej	        e          df ed          ej	        d	fg ed
          efd eee          fdefdej        fdej        fdej        fdefded	fdefdefg
dZdS )r!   z
    Lexer for Mozilla Preprocessor files (with '#' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    mozhashpreprocz^#expr	exprstart.+z(literal)(.*)z#pop:2)defineundefififdefifndefelseelifelifdefelifndefendifexpandfilterunfilterr   includesubsterrorr-   )!z!=z==z&&z||z(defined)(\()z\)r   z__\w+?__z@\w+?@z\w+r>   r,   z\S)r.   r   r   N)r/   r0   r1   r2   r3   r4   r@   r5   r   rH   r   r	   r   r   r   r   r   r   Decimalr   r   r   r7   r8   r9   r:   r!   r!     s         DfGII GO%:;EN

 xx>>IU 4 5 5 _f	&
 U0118<xx==>K '$-(
#TND&!TNK 
 FFFr9   r!   c                   D    e Zd ZdZdZegZg Zg Zddej	        dfde
fgiZdS )r"   z
    Lexer for Mozilla Preprocessor files (with '%' as the marker).

    Other data is left untouched.

    .. versionadded:: 2.0
    mozpercentpreprocr.   z^%r   r   N)r/   r0   r1   r2   r3   r4   r@   r5   r   rH   r   r7   r8   r9   r:   r"   r"     sU          DfGII 	GO%:;EN
FFFr9   r"   c                   6     e Zd ZdZdZdgZdgZg Z fdZ xZ	S )r#   z
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `XmlLexer`.

    .. versionadded:: 2.0
    zXUL+mozpreproczxul+mozpreprocz*.xul.inc                 R     t                      j        t          t          fi | d S N)superrz   r   r!   rg   r|   	__class__s     r:   rz   zMozPreprocXulLexer.__init__  s+    #6BB'BBBBBr9   
r/   r0   r1   r2   r3   r4   r@   r5   rz   __classcell__r   s   @r:   r#   r#     sf          D GIIC C C C C C C C Cr9   r#   c                   6     e Zd ZdZdZdgZdgZg Z fdZ xZ	S )r$   z
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `JavascriptLexer`.

    .. versionadded:: 2.0
    zJavascript+mozpreproczjavascript+mozpreprocz*.js.inc                 R     t                      j        t          t          fi | d S r   )r   rz   r   r!   r   s     r:   rz   z"MozPreprocJavascriptLexer.__init__  s+    *=IIIIIIIr9   r   r   s   @r:   r$   r$     sf          #D&'GIIJ J J J J J J J Jr9   r$   c                   6     e Zd ZdZdZdgZdgZg Z fdZ xZ	S )r%   z
    Subclass of the `MozPreprocHashLexer` that highlights unlexed data with the
    `CssLexer`.

    .. versionadded:: 2.0
    zCSS+mozpreproczcss+mozpreprocz*.css.inc                 R     t                      j        t          t          fi | d S r   )r   rz   r   r"   r   s     r:   rz   zMozPreprocCssLexer.__init__  s+    #9EEWEEEEEr9   r   r   s   @r:   r%   r%     sf          D GIIF F F F F F F F Fr9   r%   c                      e Zd ZdZdZdZddgZddgZdgZe	j
        Zd	 Zd
 eej        e          fd eej        e          fd eej        eej        e          fd eej        eej        e          fd eeee eed                    fd eeee eed                    fd eee eed                    fd eeej                  fdej        fdef ed          gdefd eeej                  fd eeej                  fd eeej                  fd eeej                  fd eeej                  fd eeej                  fdej        fd eeej        eeej        e          fd eeej        eeej         e          fd  eeej         eej                  fd!efd"efgd#Z!d$ Z"d%S )&r&   z9
    For Markdown markup.

    .. versionadded:: 2.2
    Markdownz-https://daringfireball.net/projects/markdown/markdownmdz*.mdz
*.markdownztext/x-markdownc              #     K   ddl m} |                    d          t          j        |                    d          fV  |                    d          t          j        |                    d          fV  |                    d          t          |                    d          fV  d}| j        rB	  ||                    d                                                    }n# t          $ r Y nw xY w|                    d          }| |                    d          t          |fV  n)t          g |                    |                    E d{V  |                    d          t          j        |                    d          fV  dS 	zV
        match args: 1:backticks, 2:lang_name, 3:newline, 4:code, 5:backticks
        r   rO   rQ   rR   rS   NrT   rU   )r]   rP   r^   r   r   r_   r   ra   rb   r   r   rf   rg   rh   rP   ri   rl   s        r:   _handle_codeblockzMarkdownLexer._handle_codeblock   s      	655555 kk!nnfou{{1~~====kk!nnfou{{1~~====kk!nndu{{1~~====   	))5;;q>>+?+?+A+ACC    {{1~~ =++a..&$.....$R)E)Ed)K)KLLLLLLLLLkk!nnfou{{1~~======s   30C$ $
C10C1z(^#[^#].+)(\n)z(^#{2,6}[^#].+)(\n)z^(.+)(\n)(=+)(\n)z^(.+)(\n)(-+)(\n)z^(\s*)([*-] )(\[[ xX]\])( .+\n)rq   rr   z^(\s*)([*-])(\s)(.+\n)z^(\s*)([0-9]+\.)( .+\n)z^(\s*>\s)(.+\n)z^(\s*```\n[\w\W]*?^\s*```$\n)z(^(\s*```)(\w+)(\n)([\w\W]*?)(^\s*```$\n)rt   z([^`]?)(`[^`\n]+`)z ([^\*]?)(\*\*[^* \n][^*\n]*\*\*)z([^_]?)(__[^_ \n][^_\n]*__)z([^\*]?)(\*[^* \n][^*\n]*\*)z([^_]?)(_[^_ \n][^_\n]*_)z([^~]?)(~~[^~ \n][^~\n]*~~)z[@#][\w/:]+z (!?\[)([^]]+)(\])(\()([^)]+)(\))z(\[)([^]]+)(\])(\[)([^]]*)(\])z^(\s*\[)([^]]*)(\]:\s*)(.+)z[^\\\s]+r?   )r.   rq   c                 V    t          |dd          | _        t          j        | fi | d S rx   ry   r{   s     r:   rz   zMarkdownLexer.__init__\  r}   r9   N)#r/   r0   r1   r2   r3   r   r4   r@   r5   rA   rB   rD   r   r	   r   rE   r   
Subheadingr   r   r
   r   r   r   r   r   r   Deletedr   Entityr   r6   Labelr7   rz   r8   r9   r:   r&   r&     s        
 D
9C4 G&I"#ILE> > >> $ ? ?@#XXg.@$%G%GH!88GOT7?TX#Y#YZ!88G,>gFXZ^#_#_`/HZ'55X3N3N3NOOQ 'HZ*eeD6Q6Q6QRRT (HZ%%H*E*E*EFFH  '7<!@!@A-v?8:KLGH3
: TN"HHT6?$C$CD 1((42P2PQ+XXdGN-K-KL,hhtW\.J.JK)88D',+G+GH+XXdGO-L-LMT[)0XdDHdD$.$GGI
 /XdDHdD$*dCCE+XdDJdn==? $4LA!
9> >F@- - - - -r9   r&   c                      e Zd ZdZdZdZdgZdgZdgZe	j
        Zd Zd Zd	 eeeej                  fd
 eej        e          fd eej        e          fd eeee eed                    fd eeee          fd eej                  fd eej                  fd eej                  fd eej                  fd eeee          fdefdef ed           ed          g eddd          efgdefdej        fd eeej        e          fd eeej                  fd  eeej                  fd! eeej                  fd" eeej        e          fd# eeej        e          fd$ej        fd%ej        fd&ej        fd'ej        fd(ej        fd)ej         fd*ej!        fd+ eeej        e          fd, eeej        eej"        e          fd- eeej        e          fd. eej"                  fd/efd0efgd1Z#d2 Z$d3S )4r'   z<
    For TiddlyWiki5 markup.

    .. versionadded:: 2.7
    tiddlerz$https://tiddlywiki.com/#TiddlerFilestidz*.tidztext/vnd.tiddlywikic              #     K   ddl m} |                    d          t          |                    d          fV  |                    d          t          |                    d          fV  |                    d          t
          |                    d          fV  d}| j        rB	  ||                    d                                                    }n# t          $ r Y nw xY w|                    d          }|!|                    d          t          |fV  dS t          g |
                    |                    E d{V  |                    d          t          |                    d          fV  dS r   )r]   rP   r^   r   r_   r   ra   rb   r   r   rf   r   s        r:   r   z"TiddlyWiki5Lexer._handle_codeblockn  s      	655555 kk!nnfekk!nn4444kk!nnfekk!nn4444kk!nndekk!nn4444   	))%++a..*>*>*@*@AA    {{1~~ =++a..&$....F U%A%A$%G%GHHHHHHHHHkk!nnfekk!nn444444s   )0C 
C'&C'c              #   P  K   ddl m} |                    d          t          |                    d          fV  |                    d          t          |                    d          fV  d}| j        r	  |d          }n# t          $ r Y nw xY w|                    d          }|!|                    d          t          |fV  dS t          g |                    |                    E d{V  |                    d          t          |                    d          fV  dS )	zP
        match args: 1:style tag 2:newline, 3:code, 4:closing style tag
        r   rO   rQ   rR   NcssrS   rT   )	r]   rP   r^   r   r_   ra   r   r   rf   r   s        r:   _handle_cssblockz!TiddlyWiki5Lexer._handle_cssblock  sF      	655555 kk!nnfekk!nn4444kk!nnfekk!nn4444  	))%00    {{1~~ =++a..&$....F U%A%A$%G%GHHHHHHHHHkk!nnfekk!nn444444s   7B 
BBz^(title)(:\s)(.+\n)z^(!)([^!].+\n)z^(!{2,6})(.+\n)z^(\s*)([*#>]+)(\s*)(.+\n)rq   rr   z^(<<<.*\n)([\w\W]*?)(^<<<.*$)z^(\|.*?\|h)$z^(\|.*?\|[cf])$z^(\|.*?\|k)$z^(;.*)$z^(```\n)([\w\W]*?)(^```$)z ^(```)(\w+)(\n)([\w\W]*?)(^```$)z$^(<style>)(\n)([\w\W]*?)(^</style>$)keywords)z\definez\endcaptioncreatedmodifiedtagstitletype^z\b)prefixsuffixrt   z\d{17}z(\s)(//[^/]+//)((?=\W|\n))z(\s)(\^\^[^\^]+\^\^)z(\s)(,,[^,]+,,)z(\s)(__[^_]+__)z(\s)(''[^']+'')((?=\W|\n))z(\s)(~~[^~]+~~)((?=\W|\n))z	<<[^>]+>>z\$\$[^$]+\$\$z\$\([^)]+\)\$z^@@.*$z	</?[^>]+>z`[^`]+`z&\S*?;z(\[{2})([^]\|]+)(\]{2})z$(\[{2})([^]\|]+)(\|)([^]\|]+)(\]{2})z(\{{2})([^}]+)(\}{2})z(\b.?.?tps?://[^\s"]+)z[\w]+r?   )r.   r   rq   c                 V    t          |dd          | _        t          j        | fi | d S rx   ry   r{   s     r:   rz   zTiddlyWiki5Lexer.__init__  r}   r9   N)%r/   r0   r1   r2   r3   r   r4   r@   r5   rA   rB   rD   r   r   r	   r   r   r   rE   r   r
   r   r   r   r   r   r   r   r   r   Integerr   r   Regexr6   r7   rz   r8   r9   r:   r'   r'   a  sG        
 D
0CgG	I&'ILE5 5 5:5 5 5< $XXgtW_%M%MN$ ? ?@'*<d!C!CD *XdGT55X+F+F+FGGI .xxf/M/MNhhw~667',!7!78hhtx001'.112)88FD&+I+IJ02CD46FGGJGH9
> U !)-e= = = 
 TN'*XdGL$//1 %hhtW\&B&BC$!=!=>$!?!?@*XdGND113 +XdGOT224 48$tx(tx(!48$)%'$$)G)GH4HT48T4>4@@B &xxdh'E'EF&(@(@A t4LY-
KS SFj- - - - -r9   r'   ).r2   rA   pygments.lexers.htmlr   pygments.lexers.javascriptr   pygments.lexers.cssr   pygments.lexerr   r   r   r	   r
   r   r   r   r   pygments.tokenr   r   r   r   r   r   r   r   r   r   r   pygments.utilr   r   __all__r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r8   r9   r:   <module>r      s    
			 ) ) ) ) ) ) 6 6 6 6 6 6 ( ( ( ( ( (/ / / / / / / / / / / / / / / / / / / / / /4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5F F F    *   B* * * * *J * * *Ze e e e ez e e eP7 7 7 7 7z 7 7 7t5 5 5 5 5 5 5 5p& & & & &* & & &R    0   *C C C C C C C C J J J J J J J J F F F F F F F F k- k- k- k- k-J k- k- k-\\- \- \- \- \-z \- \- \- \- \-r9   