Ë
    !täi¸¢  ã                   ó¢  — d Z ddlZddlZddlmZmZmZmZmZ ddl	m
Z
 ddl	mZ ddl	mZ ddl	mZ ddl	mZ dd	l	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 g d¢Z ej<                  d«      Z ej<                  d«      Z  ej<                  dejB                  «      Z" ej<                  dejB                  «      Z# ej<                  d«      Z$ ej<                  d«      Z% ej<                  dejB                  «      Z& ej<                  dejB                  «      Z' ej<                  d«      Z(e
jR                  e
jT                  z   e
jV                  z   Z,d„ Z- G d„ d«      Z. G d„ de.e«      Z/ G d„ de.e«      Z0 G d„ de.e«      Z1 ej<                  d«      Z2 ej<                  d«      Z3 ej<                  d «      Z4 ej<                  d!«      Z3 ej<                  d"«      Z5 ej<                  d#«      Z6 G d$„ d%«      Z7 G d&„ d'e«      Z8 G d(„ d)e«      Z9 G d*„ d+e«      Z: G d,„ d-e«      Z; G d.„ d/e«      Z< G d0„ d1e«      Z= G d2„ d3e«      Z> G d4„ d5e«      Z?y)6aï  
    pygments.lexers.sql
    ~~~~~~~~~~~~~~~~~~~

    Lexers for various SQL dialects and related interactive sessions.

    Postgres specific lexers:

    `PostgresLexer`
        A SQL lexer for the PostgreSQL dialect. Differences w.r.t. the SQL
        lexer are:

        - keywords and data types list parsed from the PG docs (run the
          `_postgres_builtins` module to update them);
        - Content of $-strings parsed using a specific lexer, e.g. the content
          of a PL/Python function is parsed using the Python lexer;
        - parse PG specific constructs: E-strings, $-strings, U&-strings,
          different operators and punctuation.

    `PlPgsqlLexer`
        A lexer for the PL/pgSQL language. Adds a few specific construct on
        top of the PG SQL lexer (such as <<label>>).

    `PostgresConsoleLexer`
        A lexer to highlight an interactive psql session:

        - identifies the prompt and does its best to detect the end of command
          in multiline statement where not all the lines are prefixed by a
          prompt, telling them apart from the output;
        - highlights errors in the output and notification levels;
        - handles psql backslash commands.

    `PostgresExplainLexer`
        A lexer to highlight Postgres execution plan.

    The ``tests/examplefiles`` contains a few test files with data to be
    parsed by these lexers.

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)ÚLexerÚ
RegexLexerÚdo_insertionsÚbygroupsÚwords)Ú_googlesql_builtins)Ú_mysql_builtins)Ú_postgres_builtins)Ú_sql_builtins)Ú_tsql_builtins)Úget_lexer_by_nameÚClassNotFound)ÚPunctuationÚ
WhitespaceÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚGenericÚLiteral)
ÚGoogleSqlLexerÚPostgresLexerÚPlPgsqlLexerÚPostgresConsoleLexerÚPostgresExplainLexerÚSqlLexerÚTransactSqlLexerÚ
MySqlLexerÚSqliteConsoleLexerÚRqlLexerz.*?
z^(?:sqlite|   ...)>(?= )z\s+LANGUAGE\s+'?(\w+)'?z\bDO\bz\[[a-zA-Z_]\w*\]z`[a-zA-Z_]\w*`z\bgo\bz\bdeclare\s+@z@[a-zA-Z_]\w*\bc           
   #   óZ  K  — d}t         j                  | j                  |j                  «       |j                  «       dz    «      }|�!| j	                  |j                  d«      «      }nát        t         j                  | j                  t        d|j                  «       dz
  «      |j                  «        «      «      }|r$| j	                  |d   j                  d«      «      }ngt        t        j                  | j                  t        d|j                  «       dz
  «      |j                  «        «      «      }|r| j	                  d«      }|j                  d«      t        |j                  d«      f–— |j                  d«      t        j                  |j                  d«      f–— |j                  d	«      t        |j                  d	«      f–— |r)|j                  |j                  d
«      «      E d{  –—†  n)|j                  d
«      t        |j                  d
«      f–— |j                  d«      t        |j                  d«      f–— |j                  d«      t        j                  |j                  d«      f–— |j                  d«      t        |j                  d«      f–— y7 Œ´­w)z¼Parse the content of a $-string using a lexer

    The lexer is chosen looking for a nearby LANGUAGE or assumed as
    plpgsql if inside a DO statement and no LANGUAGE has been found.
    Néd   é   r   éÿÿÿÿé   Úplpgsqlé   é   é   é   é   é   )Úlanguage_reÚmatchÚtextÚendÚ
_get_lexerÚgroupÚlistÚfinditerÚmaxÚstartÚdo_rer   Ú	DelimiterÚget_tokens_unprocessed)Úlexerr1   ÚlxÚms       úb/Volumes/fast/ai/experiments/MLX_z-image/.venv/lib/python3.12/site-packages/pygments/lexers/sql.pyÚlanguage_callbackrA   R   s   è ø€ ð 
€BÜ×Ñ˜%Ÿ*™* U§Y¡Y£[°·±³¸S±ÐAÓB€AØ€}Ø×Ñ˜aŸg™g a›jÓ)‰ä”×%Ñ%Ø�J‰J”s˜1˜eŸk™k›m¨CÑ/Ó0°·±³Ð?óAó BˆáØ×!Ñ! ! B¡%§+¡+¨a£.Ó1‰Bä”U—^‘^Ø—
‘
œ3˜q %§+¡+£-°Ñ"2Ó3°E·K±K³MÐBóDó EˆAáØ×%Ñ% iÓ0�ð �;‰;�q‹>œ6 5§;¡;¨q£>Ð
2Ò2Ø�;‰;�q‹>œ6×+Ñ+¨U¯[©[¸«^Ð
<Ò<Ø�;‰;�q‹>œ6 5§;¡;¨q£>Ð
2Ò2á	Ø×,Ñ,¨U¯[©[¸«^Ó<×<Ñ<à�{‰{˜1‹~œv u§{¡{°1£~Ð6Ò6à�;‰;�q‹>œ6 5§;¡;¨q£>Ð
2Ò2Ø�;‰;�q‹>œ6×+Ñ+¨U¯[©[¸«^Ð
<Ò<Ø�;‰;�q‹>œ6 5§;¡;¨q£>Ð
2Ó2ð 	=ús   ‚G2J+Ç4J)Ç5B5J+c                   ó(   ‡ — e Zd ZdZˆ fd„Zd„ Zˆ xZS )ÚPostgresBasea£  Base class for Postgres-related lexers.

    This is implemented as a mixin to avoid the Lexer metaclass kicking in.
    this way the different lexer don't have a common Lexer ancestor. If they
    had, _tokens could be created on this ancestor and not updated for the
    other classes, resulting e.g. in PL/pgSQL parsed as SQL. This shortcoming
    seem to suggest that regexp lexers are not really subclassable.
    c              '   óP   •K  — || _         t        ‰| �  |g|¢­Ž E d {  –—†  y 7 Œ­w©N)r2   Úsuperr<   )Úselfr2   ÚargsÚ	__class__s      €r@   r<   z#PostgresBase.get_tokens_unprocessed   s&   øè ø€ àˆŒ	Ü‘7Ñ1°$Ð>¸Ò>×>Ò>ús   ƒ&ž$Ÿ&c                 ó¶  — |j                  «       dk(  rt        di | j                  ¤ŽS |g}|j                  d«      r|j	                  |dd  «       |j                  d«      r|j	                  |d d «       |j                  d«      r%|j                  d«      r|j	                  |dd «       |D ]  }	 t        |fi | j                  ¤Žc S  y # t        $ r Y Œ)w xY w)NÚsqlÚplr*   Úur'   )Ú
postgresql)Úlowerr   ÚoptionsÚ
startswithÚappendÚendswithr   )rG   ÚlangÚtriesr>   s       r@   r4   zPostgresBase._get_lexer„   sÊ   € Ø�:‰:‹<˜5Ò Ü$ÑB°T·\±\ÑBÐBà�ˆØ�?‰?˜4Ô Ø�L‰L˜˜a˜b˜Ô"Ø�=‰=˜ÔØ�L‰L˜˜c˜r˜Ô#Ø�?‰?˜4Ô  T§]¡]°3Ô%7Ø�L‰L˜˜a ˜Ô$ãˆBðÜ(¨Ñ<¨t¯|©|Ñ<Ò<ð ð øô !ò Ùðús   Â2CÃ	CÃC)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r<   r4   Ú__classcell__)rI   s   @r@   rC   rC   v   s   ø„ ñô?ö
ó    rC   c                   óD  — e Zd ZdZdZddgZdgZdZdZe	j                  Zdefd	ej                  fd
ej                  dfddj!                  d„ ej$                  ej&                  z   D «       «      z   dz   ej*                  f eej.                  d¬«      efdefdefdej4                  fdej8                  fdej:                  fd eej@                  ej                  «      dfd eej@                  ej(                  «      dfde!fdefdej4                  fde"fgd
ej                  dfdej                  d fd!ej                  fd"ej                  fgd#ej                  fd$ej                  fd%ej                  d fgd&ej(                  fd'ej(                  fd(ej(                  d fgd)œZ#y*)+r   z2
    Lexer for the PostgreSQL dialect of SQL.
    zPostgreSQL SQL dialectrN   Úpostgresztext/x-postgresqlúhttps://www.postgresql.orgú1.5ú\s+ú--.*\n?ú/\*úmultiline-commentsÚ(Ú|c              #   ó@   K  — | ]  }|j                  d d«      –— Œ y­w)Ú r`   N)Úreplace)Ú.0Úss     r@   Ú	<genexpr>zPostgresLexer.<genexpr>¬   s'   è ø€ ð >ñ'= ð ŸY™Y s¨F×3ñ'=ùs   ‚z)\bú\b©Úsuffixz[+*/<>=~!@#%^&|`?-]+z::ú\$\d+z&([0-9]*\.[0-9]*|[0-9]+)(e[+-]?[0-9]+)?ú[0-9]+z((?:E|U&)?)(')Ústringz((?:U&)?)(")úquoted-identz$(?s)(\$)([^$]*)(\$)(.*?)(\$)(\2)(\$)z	[a-z_]\w*ú:(['"]?)[a-z]\w*\b\1z[;:()\[\]{},.]ú\*/ú#popú[^/*]+ú[/*]ú[^']+ú''Ú'ú[^"]+ú""Ú")Úrootrc   rq   rr   N)$rV   rW   rX   rY   ÚnameÚaliasesÚ	mimetypesÚurlÚversion_addedÚreÚ
IGNORECASEÚflagsr   r   ÚSingleÚ	MultilineÚjoinr
   Ú	DATATYPESÚPSEUDO_TYPESr   ÚBuiltinr   ÚKEYWORDSr   r   ÚVariabler   ÚFloatÚIntegerr   r   ÚAffixrA   r   Útokens© r[   r@   r   r   ›   sõ  „ ñð $€DØ˜ZÐ(€GØ$Ð%€IØ
&€CØ€Mà�M‰M€Eð �ZÐ Ø˜Ÿ™Ð(Ø�W×&Ñ&Ð(<Ð=Ø�C—H‘Hñ >Ø&8×&BÑ&BØ/×<Ñ<ò'=ó>ó >ñ >à@FñGð �\‰\ðñ Ð%×.Ñ.°uÔ=¸wÐGØ$ hÐ/Ø�HÐØ�t—}‘}Ð%Ø6¸¿¹ÐEØ˜Ÿ™Ð'Ø¡¨¯©°v·}±}Ó EÀxÐPà™h v§|¡|°V·[±[ÓAÀ>ÐRØ4Ð6GÐHØ˜4Ð ð )¨$¯-©-Ð8à Ð,ð/
ð4 �W×&Ñ&Ð(<Ð=Ø�W×&Ñ&¨Ð/Ø˜×)Ñ)Ð*Ø�g×'Ñ'Ð(ð	
ð �v—}‘}Ð%Ø�F—M‘MÐ"Ø�6—=‘= &Ð)ð
ð �v—{‘{Ð#Ø�F—K‘KÐ Ø�6—;‘; Ð'ð
ñK*�Fr[   r   c            	       ó´  — e Zd ZdZdZdgZdgZdZdZe	j                  Zej                  j                  «       D � ��ci c]  \  }}||dd “Œ c}}} Z eed   «      D ]9  \  ZZed	   ek(  sŒ eej*                  ej,                  z   d
¬«      efed   e<   [ n J d«       ‚dej0                  fdefdej4                  fdej6                  fged   dd yc c}}} w )r   z7
    Handle the extra syntax in Pl/pgSQL language.
    zPL/pgSQLr)   ztext/x-plpgsqlz4https://www.postgresql.org/docs/current/plpgsql.htmlr_   Nr~   r&   rl   rm   r   zSQL keywords not foundz\%[a-z]\w*\bz:=z\<\<[a-z]\w*\>\>z\#[a-z]\w*\b)rV   rW   rX   rY   r   r€   r�   r‚   rƒ   r„   r…   r†   r   r’   ÚitemsÚ	enumerateÚiÚpatternr   r   r
   r�   ÚPLPGSQL_KEYWORDSr   rŒ   r   ÚLabelÚPseudo©ri   r   Ústates   000r@   r   r   Ô   s  „ ñð €DØˆk€GØ!Ð"€IØ
@€CØ€Mà�M‰M€Eà2?×2FÑ2F×2LÑ2LÔ2NÕOÑ2N¡ $¨ˆd�E™!�H‰nÐ2NÓO€Fñ    v¡Ö/‰
ˆˆ7Ø�1‰:˜Ó áÐ(×1Ñ1Ø(×9Ñ9ñ:ØBGôIàð!ˆF�6‰N˜1Ñð Ùð 0ð 	+Ð*Ó*ˆqð 
˜$Ÿ,™,Ð'Ø	�ÐØ	˜dŸj™jÐ)Ø	˜'Ÿ.™.Ð)ð	€Fˆ6�N�2�AÑùô Ps   ½Cr   c            	       ó€  — e Zd ZdZdZg Zej                  Ze	j                  j                  «       D � ��ci c]  \  }}||dd “Œ c}}} Z
e
d   j                  dej                  df«       dedfdefdej                  fd	ej$                  fd
ej(                  fdej*                  fdej,                  fge
d<   yc c}}} w )ÚPsqlRegexLexerz­
    Extend the PostgresLexer adding support specific for psql commands.

    This is not a complete psql lexer yet as it lacks prompt support
    and output rendering.
    z'PostgreSQL console - regexp based lexerNr~   z\\[^\s]+zpsql-commandz\nr`   rs   ú'(''|[^'])*'z	`([^`])*`z[^\s]+)rV   rW   rX   rY   r   r€   r„   r…   r†   r   r’   r•   rR   r   r›   r   r   r   rŽ   r   r‡   ÚBacktickÚSymbolrœ   s   000r@   rŸ   rŸ   ÷   sÏ   „ ñð 5€DØ€Gà�M‰M€EØ2?×2FÑ2F×2LÑ2LÔ2NÕOÑ2N¡ $¨ˆd�E™!�H‰nÐ2NÓO€Fà
ˆ6�N×ÑØ	�g—n‘n nÐ5ô7ð 
��fÐØ	�ÐØ	�g—n‘nÐ%Ø	$ d§m¡mÐ4Ø	˜&Ÿ-™-Ð(Ø	�v—‘Ð'Ø	�F—M‘MÐ"ð€Fˆ>Òùô	 Ps   µB9rŸ   z^(\S.*?)??[=\-\(\$\'\"][#>]z\s*\\z;\s*(--.*?)?$z(\s*)(\\.+?)(\s+)$z(ERROR|FATAL):zS((?:DEBUG|INFO|NOTICE|WARNING|ERROR|FATAL|HINT|DETAIL|CONTEXT|LINE [0-9]+):)(.*?\n)c                   ó,   — e Zd ZdZd„ Zd„ Zd„ Zd„ ZeZy)Ú	lookaheadz0Wrap an iterator and allow pushing back an item.c                 ó2   — t        |«      | _         d | _        y rE   )ÚiterÚ	_nextitem)rG   Úxs     r@   Ú__init__zlookahead.__init__  s   € Ü˜“GˆŒ	Øˆ�r[   c                 ó   — | S rE   r“   )rG   s    r@   Ú__iter__zlookahead.__iter__"  s   € Øˆr[   c                 ó   — || _         |S rE   )r§   )rG   r—   s     r@   Úsendzlookahead.send%  s   € ØˆŒØˆr[   c                 ón   — | j                   �| j                   }d | _         |S t        | j                  «      S rE   )r§   Únextr¦   )rG   Únis     r@   Ú__next__zlookahead.__next__)  s/   € Ø�>‰>Ð%Ø—‘ˆBØ!ˆDŒNØˆIÜ�D—I‘I‹Ðr[   N)	rV   rW   rX   rY   r©   r«   r­   r±   r¯   r“   r[   r@   r¤   r¤     s    „ Ù:òòòòð �Dr[   r¤   c                   ó4   — e Zd ZdZdZg d¢ZdgZdZdZdZ	d„ Z
y	)
r   z"
    Lexer for psql sessions.
    zPostgreSQL console (psql))Úpsqlzpostgresql-consolezpostgres-consoleztext/x-postgresql-psqlr^   r_   zpsql/psql_session.txtc              #   ó¾  K  — t        di | j                  ¤Ž}t        t        j	                  |«      «      }	 d}g }|D ]é  }|j                  d«      r2|s0t        d	i | j                  ¤Ž}|j                  |«      E d {  –—†   n¦t        j                  |«      }|�\|j                  t        |«      dt        j                  |j                  «       fgf«       ||t        |j                  «       «      d  z  }n||z  }t        j                  |«      st         j#                  |«      sŒé n t%        ||j                  |«      «      E d {  –—†  t        j&                  }	|D ]ó  }t        j                  |«      }|�|j)                  |«        nÊt*        j                  |«      }
|
�©|
j                  d«      j                  d«      s |
j                  d«      j                  d«      rt        j,                  }	|
j/                  d«      t        j0                  |
j                  d«      f–— |
j/                  d«      |	|
j                  d«      f–— Œíd|	|f–— Œõ y �Œ 7 �ŒÛ7 �Œ­w)
Nr&   Ú Ú$r   ÚERRORÚFATALr*   r“   )Úconsole)rŸ   rP   r¤   Úline_reÚfindallrQ   r   r<   Ú	re_promptr1   rR   Úlenr   ÚPromptr5   Úre_psql_commandÚre_end_commandÚsearchr   ÚOutputr­   Ú
re_messageÚErrorr9   ÚStrong)rG   ÚdatarK   ÚlinesÚcurcodeÚ
insertionsÚliner=   ÚmpromptÚ	out_tokenÚmmsgs              r@   r<   z+PostgresConsoleLexer.get_tokens_unprocessed>  s  è ø€ ÜÑ,˜tŸ|™|Ñ,ˆäœ'Ÿ/™/¨$Ó/Ó0ˆð ð ˆGØˆJÛ�à—?‘? 3Ô'±Ü-ÑH¸4¿<¹<ÑH�EØ$×;Ñ;¸DÓA×AÐAÙô $Ÿ/™/¨$Ó/�ØÐ&Ø×%Ñ%¤s¨7£|Ø)*¬G¯N©N¸G¿M¹M»OÐ(LÐ'Mð'Oô Pà˜t¤C¨¯©«Ó$8Ð$9Ð:Ñ:‘Gà˜t‘O�Gô
 #×(Ñ(¨Ô1Ü$×+Ñ+¨GÕ4Ùð+ ô0 % ZØ%(×%?Ñ%?ÀÓ%HóJ÷ Jð Jô  Ÿ™ˆIÛ�Ü#Ÿ/™/¨$Ó/�ØÐ&à—J‘J˜tÔ$Ùä!×'Ñ'¨Ó-�ØÐ#Ø—z‘z !“}×/Ñ/°Ô8ØŸ*™* Q›-×2Ñ2°7Ô;Ü$+§M¡M˜	ØŸ:™: a›=¬'¯.©.¸$¿*¹*ÀQ»-ÐHÒHØŸ:™: a›=¨)°T·Z±ZÀ³]ÐCÓCà˜i¨Ð.Ó.ð ð" ñi ð Bùð(Jûs,   ‚A:IÁ<IÁ=B(IÄ&!IÅIÅDIÉIN)rV   rW   rX   rY   r   r€   r�   r‚   rƒ   Ú_exampler<   r“   r[   r@   r   r   2  s/   „ ñð '€DÚ@€GØ)Ð*€IØ
&€CØ€MØ&€Hó:r[   r   c                   ó  — e Zd ZdZdZdgZdgZdgZdZdZ	g de
f‘d	ef‘d
 eej                  e
«      df‘d eej                  ee
«      df‘ edd¬«      ej"                  f‘d eej"                  e«      f‘dej(                  f‘d eej*                  e
«      df‘d eej*                  e
e«      df‘d eee
e«      df‘ edd¬«      ej*                  df‘dej*                  df‘d eeeej.                  e«      df‘ edd¬«      ej*                  f‘ edd¬«      ej0                  f‘d eej0                  e
e«      f‘ eej4                  d¬«      ef‘d ej6                  f‘d!ej*                  f‘d"ej*                  f‘d#ej*                  f‘d$ eeeej8                  «      f‘d%e
df‘d&ej"                  f‘d'ej<                  f‘d(ej.                  f‘d)ej>                  f‘d*ej"                  f‘d+ eej*                  e
e«      d,f‘d- eej*                  e
«      f‘d.ej(                  f‘d/ eej*                  eej8                  e
e«      f‘d0e
d1fd2e
d3fd4ej0                  fd5efgd6 eej                  e
«      dfd7 eej                  ee
«      dfd0e
d8fd9e
fd:ej8                  fd;ej8                  fd<ej8                  fd=e
dfd>e
dfd?ej8                  fd@ej8                  fdAej8                  fdBej8                  fdCej8                  fdDefdEe
fdFe
fd2e
d3fgdG ee
ej8                  e
«      d3fdHej8                  d3fgdIe
fdDefdJej                  fdKej<                  fdLej.                  fd2e
d3fgdM eej*                  ej8                  «      fdNej*                  dfdOej*                  dfgdP eej@                  eeee«      fdQe
fgd0e
fdRej8                  fd2e
d3fgdSe
fdTejB                  fdUej0                  fdLej.                  fdDefgdVœ	Z"yW)Xr   z*
    Handle PostgreSQL EXPLAIN output
    zPostgreSQL EXPLAIN dialectzpostgres-explainz	*.explainztext/x-postgresql-explainz:https://www.postgresql.org/docs/current/using-explain.htmlz2.15z!(:|\(|\)|ms|kB|->|\.\.|\,|\/|=|%)z(\s+)z
(cost)(=?)Úinstrumentationz(actual)( )(=?))ÚactualzMemory Usagez
Disk UsageÚMemoryÚBucketsÚBatchesÚ
originallyÚrowÚrowsÚHitsÚMissesÚ	EvictionsÚ	OverflowszPlanned PartitionsÚ	EstimatesÚcapacityzdistinct keysÚlookupszhit percentzIndex SearchesÚStoragezDisk Maximum Storagerl   rm   z.(hit|read|dirtied|written|write|time|calls)(=)z(shared|temp|local)z(Sort Method)(: )Úsortz1(Sort Key|Group Key|Presorted Key|Hash Key)(:)( )Úobject_namez(Cache Key|Cache Mode)(:)( ))úJoin FilterzSubplans RemovedÚFilterz
Merge Condz	Hash Condz
Index CondzRecheck CondzHeap BlockszTID CondzRun ConditionzOrder ByzFunction CallzTable Function CallzInner UniquezParams EvaluatedzSingle CopyÚSamplingzOne-Time FilterrÂ   Ú	Relationsz
Remote SQLÚDisabledÚ	predicatez	Conflict Úconflictz(InitPlan|SubPlan)( )(\d+)( )Ú	init_plan)zSort Methodrâ   zPlanning timezPlanning TimezExecution timezExecution TimezWorkers PlannedzWorkers LaunchedÚBuffersÚPlanningÚWorkerzQuery IdentifierÚTimezFull-sort GroupszPre-sorted Groups)zRows Removed by Join FilterzRows Removed by FilterzRows Removed by Index RecheckzHeap Fetchesznever executedz(I/O Timings)(:)( )z"((Right|Left|Full|Semi|Anti) Join)z%(Parallel |Async |Finalize |Partial )ÚBackwardz(Intersect|Except|Hash)z(CTE)( )(\w*)?z
(on|using)r    z
-?\d+\.\d+z(-?\d+)z(true|false)z\s*QUERY PLAN\s*\n\s*-+z(Settings)(:)( )Úsettingz!(JIT|Functions|Options|Timing)(:)zG(Inlining|Optimization|Expressions|Deforming|Generation|Emission|Total)z(Trigger)( )(\S*)(:)( )z\(z#pushz\)ru   z(never executed)z[^)(]+z(\(cost)(=?)z(\(actual)( )(=?)Ú
expressionz(on)z&\w+(\.\w+)*( USING \S+| \w+ USING \S+)z\"?\w+\"?(?:\.\"?\w+\"?)?z\'\S*\'z,\nÚ,z"\*SELECT\*( \d+)?"(.\w+)?z"\*VALUES\*(_\d+)?"(.\w+)?z"ANY_subquery"ro   z::\w+z +r}   z
\[\.\.\.\]z(\()([^\n]*)(\))z[^\n]*z=|\.\.z(rows|width|time|loops)z\d+\.\d+z(\d+)z(Resolution: )(\w+)z(Arbiter \w+:)z
(Filter: )z ([a-z_]*?)(\s*)(=)(\s*)(\'.*?\')z\, zreturns \$\d+(,\$\d+)?z:|kBz.(quicksort|top-N|heapsort|Average|Memory|Peak)z(external|merge|Disk|sort))	r~   rð   rá   rç   rÐ   rè   rï   ré   rà   N)#rV   rW   rX   rY   r   r€   Ú	filenamesr�   r‚   rƒ   r   r   r   r   ÚClassr   r   r‡   r   r   r›   ÚPreprocr   r�   Ú	Exceptionr
   ÚEXPLAIN_KEYWORDSÚTyperŽ   r   r�   ÚConstantÚ	AttributeÚPrepocr’   r“   r[   r@   r   r   {  s   „ ñð (€DØ!Ð"€GØ�€IØ,Ð-€IØ
F€CØ€Mð_
Ø1°;Ð?ð_
à�zÐ"ð_
ð ™H T§Z¡Z°Ó=Ð?PÐQð_
ð  ¡¨$¯*©*°jÀ+Ó!NÐPaÐbð_
ñ ð Ið RWô	Xð
 �^‰^ðð_
ð" ?ÁÈÏÉÐYaÓ@bÐcð#_
ð$ $ W§^¡^Ð4ð%_
ð* "¡8¨G¯O©O¸[Ó#IÈ6ÐRð+_
ð0 BÙ�g—o‘o {°JÓ?ÀðPð1_
ð4 -©h°wÀÈZÓ.XÐZgÐhð5_
ñ: ð ;ð
 DIôJð �_‰_˜kð+ð;_
ðL ˜7Ÿ?™?¨JÐ7ðM_
ðR .Ù�g˜z¨6¯>©>¸:ÓFØððS_
ñZ ð =ð FKô	Lð NUÏ_É_ð	^ð[_
ñj ð 6ð  ô!ð #'§.¡.ð2ðk_
ðr $¡X¨d¯n©n¸kÈ:Ó%VÐWðs_
ñv Ð%×6Ñ6¸uÔEÀwÐOðw_
ð| 3°G·L±LÐAð}_
ð~ 6°w·±ÐGð_
ð@ ˜'Ÿ/™/Ð*ðA_
ðB (¨¯©Ð9ðC_
ðF ¡¨°*¸d¿m¹mÓ LÐMðG_
ðN ˜K¨Ð7ðO_
ðV ˜fŸm™mÐ,ðW_
ðZ ˜FŸL™LÐ)ð[_
ð\ ˜Ÿ™Ð(ð]_
ðb ˜dŸm™mÐ,ðc_
ðf (¨¯©Ð8ðg_
ðj !¡(¨7¯?©?¸KÈÓ"TÐV_Ð`ðk_
ðp 2±8¸G¿O¹OÈ[Ó3YÐZðq_
ðr XÐY`×YgÑYgÐhðs_
ðx (Ù�g—o‘o z°4·=±=À+ÈzÓZð\ðy_
ðF �K Ð)Ø�K Ð(Ø  $§.¡.Ð1Ø˜Ð ð
ð ™h t§z¡z°;Ó?ÐARÐSØ!¡8¨D¯J©J¸
ÀKÓ#PÐRcÐdð �K Ð.Ø�kÐ"à6¸¿¹ÐFØ)¨4¯=©=Ð9Ø˜Ÿ™Ð'ð �[ -Ð0Ø�; Ð.ð +¨D¯M©MÐ:Ø*¨D¯M©MÐ:Ø §¡Ð.ð �t—}‘}Ð%à�t—}‘}Ð%Ø�JÐØ�;ÐØ˜KÐ(Ø�K Ð(ð? 
ðF !¡(¨;¸¿¹À{Ó"SÐU[Ð\à˜Ÿ™ vÐ.ð	
ð ˜Ð$Ø�JÐØ'¨¯©Ð4Ø˜&Ÿ,™,Ð'Ø�v—~‘~Ð&Ø�K Ð(ð
ð $¡X¨g¯o©o¸t¿}¹}Ó%MÐNØ §¡°Ð?Ø˜GŸO™O¨[Ð9ð
ð 1±(¸4¿>¹>È:ÐW_ÐakÐmsÓ2tÐuØ�[Ð!ð
ð
 �KÐ Ø&¨¯©Ð6Ø�K Ð(ð
ð �kÐ"Ø>ÀÇÁÐOØ*¨D¯N©NÐ;Ø�v—~‘~Ð&Ø�JÐð
ñMm�Fr[   r   c                   óÆ  — e Zd ZdZdZdgZdgZdgZdZdZ	e
j                  Zdefd	ej                  fd
ej                   df eej&                  d¬«      ef eej*                  d¬«      ej.                  fdefdej4                  fdej                  fdej8                  fdefdefgd
ej                   dfdej                   dfdej                   fdej                   fgdœZd„ Zy)r   z
    Lexer for Structured Query Language. Currently, this lexer does
    not recognize any special syntax except ANSI SQL.
    ÚSQLrK   ú*.sqlz
text/x-sqlz!https://en.wikipedia.org/wiki/SQLrµ   r`   ra   rb   rc   rl   rm   z[+*/<>=~!@#%^&|`?-]rp   r    ú"(""|[^"])*"z[a-z_][\w$]*ú[;:()\[\],.]rt   ru   rv   rw   ©r~   rc   c                  ó   — y rE   r“   )rG   r2   s     r@   Úanalyse_textzSqlLexer.analyse_text\  s   € Ør[   N) rV   rW   rX   rY   r   r€   rò   r�   r‚   rƒ   r„   r…   r†   r   r   r‡   rˆ   r   r   r�   r   rŠ   r   rŒ   r   r   r�   r   r¢   r   r’   r  r“   r[   r@   r   r   7  s  „ ñð
 €DØˆg€GØ�	€IØ�€IØ
-€CØ€Mà�M‰M€Eð �ZÐ Ø˜Ÿ™Ð(Ø�W×&Ñ&Ð(<Ð=Ù�=×)Ñ)°%Ô8¸'ÐBÙ�=×*Ñ*°5Ô9¸4¿<¹<ÐHØ# XÐ.Ø˜Ÿ™Ð'à˜fŸm™mÐ,Ø˜fŸm™mÐ,Ø˜dÐ#Ø˜kÐ*ð
ð �W×&Ñ&Ð(<Ð=Ø�W×&Ñ&¨Ð/Ø˜×)Ñ)Ð*Ø�g×'Ñ'Ð(ð	
ñ€Fó.r[   r   c                   ó–  — e Zd ZdZdZddgZdgZdgZdZdZ	e
j                  Zd	efd
ej                  fdej                   df eej&                  «      ef eej*                  d¬«      ej,                  f eej.                  d¬«      ej2                  f eej4                  d¬«      ej6                  fd eeeej<                  «      f eej>                  d¬«      efd eeee«      fde jB                  fde jD                  fde jD                  fde jD                  fde jF                  fde$j                  fde$jJ                  fde&fdejN                  fdejP                  fd eej<                  e&«      fdefdejP                  jR                  fgdej                   dfdej                   dfd ej                   fd!ej                   fgd"œZ*d#„ Z+y$)%r    zª
    Transact-SQL (T-SQL) is Microsoft's and Sybase's proprietary extension to
    SQL.

    The list of keywords includes ODBC and keywords reserved for future use.
    zTransact-SQLÚtsqlzt-sqlrý   ztext/x-tsqlzhttps://www.tsql.inforµ   r`   z--.*[$|\n]?rb   rc   rl   rm   z(goto)(\s+)(\w+\b)z(\[)([^]]+)(\])ú0x[0-9a-f]+ú[0-9]+\.[0-9]*(e[+-]?[0-9]+)?z\.[0-9]+(e[+-]?[0-9]+)?ú[0-9]+e[+-]?[0-9]+rp   r    rþ   z[;(),.]z@@\w+z@\w+z(\w+)(:)z#?#?\w+ú\?rt   ru   rv   rw   r   c                 óv  — d}t         j                  | «      rd}|S t        t        j	                  | «      «      }t        t
        j	                  | «      «      }||z   }|dk\  r|d|z  k\  r|dz  }n||kD  r|dz  }n
|dkD  r|dz  }t        j                  | «      �|dz  }t        j                  | «      �|dz  }|S )Nr   g      ð?r&   r*   ç      à?çš™™™™™É?çš™™™™™¹?)Útsql_declare_rerÁ   r½   Úname_between_backtick_rer»   Úname_between_bracket_reÚtsql_variable_reÚ
tsql_go_re©r2   ÚratingÚname_between_backtick_countÚname_between_bracket_countÚdialect_name_counts        r@   r  zTransactSqlLexer.analyse_text™  sÞ   € ØˆÜ×!Ñ! $Ô'àˆFð, ˆô) +.Ü(×0Ñ0°Ó6ó+8Ð'ä),Ü'×/Ñ/°Ó5ó*7Ð&ð
 "=Ð?YÑ!YÐØ! QÒ&Ø)¨QÐ1LÑ-LÒLà˜#‘‘Ø+Ð.IÒIØ˜#‘‘Ø+¨aÒ/Ø˜#‘�Ü×&Ñ& tÓ,Ð8Ø˜#‘�Ü× Ñ  Ó&Ð2Ø˜#‘�Øˆr[   N),rV   rW   rX   rY   r   r€   rò   r�   r‚   rƒ   r„   r…   r†   r   r   r‡   rˆ   r   r   Ú	OPERATORSr   ÚOPERATOR_WORDSÚWordÚTYPESr   ró   Ú	FUNCTIONSÚFunctionr   r   rš   r�   r   ÚHexr�   r�   r   r¢   r   rŒ   rŽ   ÚMagicr’   r  r“   r[   r@   r    r    `  sô  „ ñð €DØ�wÐ€GØ�	€IØ�€IØ
!€CØ€Mà�M‰M€Eð �ZÐ Ø˜WŸ^™^Ð,Ø�W×&Ñ&Ð(<Ð=Ù�>×+Ñ+Ó,¨hÐ7Ù�>×0Ñ0¸Ô?ÀÇÁÐOÙ�>×'Ñ'°Ô6¸¿
¹
ÐCÙ�>×+Ñ+°EÔ:¸D¿M¹MÐJØ"¡H¨W°jÀ$Ç*Á*Ó$MÐNÙ�>×*Ñ*°5Ô9¸7ÐCØ¡¨(°D¸(Ó!CÐDØ˜VŸZ™ZÐ(à-¨v¯|©|Ð<à'¨¯©Ð6à" F§L¡LÐ1Ø˜Ÿ™Ð'Ø˜fŸm™mÐ,Ø˜fŸm™mÐ,Ø˜Ð%ð �t—|‘|Ð$Ø�d—m‘mÐ$Ø™( 4§:¡:¨{Ó;Ð<Ø˜ÐØ�D—M‘M×'Ñ'Ð(ð;
ð@ �W×&Ñ&Ð(<Ð=Ø�W×&Ñ&¨Ð/Ø˜×)Ñ)Ð*Ø�g×'Ñ'Ð(ð	
ñA&€FóPr[   r    c                   óV  — e Zd ZdZdZdgZdgZdZdZe	j                  Zg def‘dej                  f‘d	ej                  d
f‘dej                   d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j*                  f‘dej.                  f‘dej.                  f‘dej.                  f‘dej                  df‘dej2                  df‘dej6                  f‘dej6                  f‘dej6                  df‘d ej6                  d!f‘d"ej6                  d#f‘d$ej6                  f‘d%ef‘d&ef‘d' eeee«      f‘ ee jB                  d(d(¬)«      ejD                  f‘ ee jF                  d(d(¬)«      ejH                  f‘ ee jJ                  d(d(¬)«      ef‘ ee jL                  d(d*¬)«       eejN                  ee(«      f‘d+ef‘d,ejR                  d-f‘d.e(f‘d/ej                  fd0ej                  d1f ee jT                  d(¬2«      ejV                  fd3ej                  fd4ej                  fgd5ej                   fd0ej                   d1fd4ej                   fgd6ej                  fd7ejX                  fd8ejX                  fdej                  d1fgd9ej2                  fd:ejX                  fd8ejX                  fdej2                  d1fgd;ej6                  fd7ej6                  fdej6                  d1fgd<ej6                  fd:ej6                  fdej6                  d1fgd=ej6                  fd>ej6                  fd,ej6                  d1fgd=ejR                  fd>ejR                  jX                  fd,ejR                  d1fgd?œ	Z-d@„ Z.yA)Br!   a5  The Oracle MySQL lexer.

    This lexer does not attempt to maintain strict compatibility with
    MariaDB syntax or keywords. Although MySQL and MariaDB's common code
    history suggests there may be significant overlap between the two,
    compatibility between the two is not a target for this lexer.
    ÚMySQLÚmysqlztext/x-mysqlzhttps://www.mysql.comrµ   r`   ú(?:#|--\s+).*z/\*\+úoptimizer-hintsrb   úmultiline-commentúx'([0-9a-f]{2})+'r  úb'[01]+'ú0b[01]+r  ú[0-9]*\.[0-9]+(e[+-]?[0-9]+)?r  ú"[0-9]+(?=[^0-9a-z$_\u0080-\uffff])úI\{\s*d\s*(?P<quote>['\"])\s*\d{2}(\d{2})?.?\d{2}.?\d{2}\s*(?P=quote)\s*\}úZ\{\s*t\s*(?P<quote>['\"])\s*(?:\d+\s+)?\d{1,2}.?\d{1,2}.?\d{1,2}(\.\d*)?\s*(?P=quote)\s*\}úp\{\s*ts\s*(?P<quote>['\"])\s*\d{2}(?:\d{2})?.?\d{2}.?\d{2}\s+\d{1,2}.?\d{1,2}.?\d{1,2}(\.\d*)?\s*(?P=quote)\s*\}rz   úsingle-quoted-stringr}   údouble-quoted-stringú9@@(?:global\.|persist\.|persist_only\.|session\.)?[a-z_]+ú@[a-z0-9_$.]+ú@'úsingle-quoted-variableú@"údouble-quoted-variableú@`úbacktick-quoted-variabler  z[!%&*+/:<=>^|~-]+ú\b(set)(?!\s*\()ú\b(character)(\s+)(set)\brl   ©Úprefixrn   ú\b(\s*)(\()õ   [0-9a-z$_Â€-ï¿¿]+Ú`úschema-object-nameú[(),.;]z[^*a-z]+rt   ru   rm   z[a-z]+ú\*ú[^*]+ú[^'\\]+ry   ú\\[0'"bnrtZ\\%_]ú[^"\\]+r|   rx   r{   ú[^`]+ú``)	r~   r#  r$  r-  r.  r2  r4  r6  r>  c                 óà   — d}t        t        j                  | «      «      }t        t        j                  | «      «      }||z   }|dk\  r|d|z  k\  r|dz  }|S ||kD  r|dz  }|S |dkD  r|dz  }|S )Nr   r&   r*   r
  r  r  )r½   r  r»   r  r  s        r@   r  zMySqlLexer.analyse_text`  s    € ØˆÜ&)Ü$×,Ñ,¨TÓ2ó'4Ð#ä%(Ü#×+Ñ+¨DÓ1ó&3Ð"ð 9Ð;UÑUÐØ Ò"Ø&¨!Ð.HÑ*HÒHà�c‰MˆFð
 ˆð	 )Ð+EÒEØ�c‰MˆFð ˆð )¨1Ò,Ø�c‰MˆFØˆr[   N)/rV   rW   rX   rY   r   r€   r�   r‚   rƒ   r„   r…   r†   r   r   r‡   ÚSpecialrˆ   r   r  ÚBinr�   r�   r   ÚDater   ÚDoubler   rŽ   r   r   r   r   r	   ÚMYSQL_CONSTANTSrø   ÚMYSQL_DATATYPESr÷   ÚMYSQL_KEYWORDSÚMYSQL_FUNCTIONSr  r   ÚQuotedÚMYSQL_OPTIMIZER_HINTSrô   ÚEscaper’   r  r“   r[   r@   r!   r!   ¶  s  „ ñð €DØˆi€GØÐ €IØ
!€CØ€Mà�M‰M€EðP
Ø�ZÐ ðP
ð ˜wŸ~™~Ð.ð	P
ð
 �w—‘Ð(9Ð:ðP
ð �W×&Ñ&Ð(;Ð<ðP
ð " 6§:¡:Ð.ðP
ð ˜VŸZ™ZÐ(ðP
ð ˜&Ÿ*™*Ð%ðP
ð ˜Ÿ™Ð$ðP
ð" .¨v¯|©|Ð<ð#P
ð$ .¨v¯|©|Ð<ð%P
ð& # F§L¡LÐ1ð'P
ð( 3°F·N±NÐCð)P
ð. ZØ�\‰\ðð/P
ð6 kØ�\‰\ðð7P
ð@&ð
 —‘ðð?P
ðR �6—=‘=Ð"8Ð9ðSP
ðT �6—=‘=Ð"8Ð9ðUP
ðZ JÈ4Ï=É=ÐYð[P
ð\ ˜tŸ}™}Ð-ð]P
ð^ �D—M‘MÐ#;Ð<ð_P
ð` �D—M‘MÐ#;Ð<ðaP
ðb �D—M‘MÐ#=Ð>ðcP
ðd �D—M‘MÐ"ðeP
ðj " 8Ð,ðkP
ðp ! 'Ð*ðqP
ðr *©8°G¸ZÈÓ+QÐRðsP
ñx �?×2Ñ2¸5ÈÔOØ�]‰]ððyP
ñ| �?×2Ñ2¸5ÈÔOØ�\‰\ðð}P
ñ@ �?×1Ñ1¸%ÈÔNØððAP
ñD �?×2Ñ2¸5ÈÔXÙ�d—m‘m Z°Ó=ð?ðEP
ðV (¨Ð.ðWP
ðX �4—;‘;Ð 4Ð5ðYP
ð^ ˜Ð%ð_P
ðl ˜'Ÿ/™/Ð*Ø�W—_‘_ fÐ-Ù�?×8Ñ8ÀÔGØ�_‰_ðà�w—‘Ð'Ø�G—O‘OÐ$ð
ð �w×(Ñ(Ð)Ø�W×&Ñ&¨Ð/Ø�G×%Ñ%Ð&ð
ð ˜Ÿ™Ð'Ø�F—M‘MÐ"Ø$ f§m¡mÐ4Ø�6—=‘= &Ð)ð	!
ð ˜Ÿ™Ð'Ø�F—M‘MÐ"Ø$ f§m¡mÐ4Ø�6—=‘= &Ð)ð	!
ð �t—}‘}Ð%Ø�D—M‘MÐ"Ø�4—=‘= &Ð)ð#
ð �t—}‘}Ð%Ø�D—M‘MÐ"Ø�4—=‘= &Ð)ð#
ð �t—}‘}Ð%Ø�D—M‘MÐ"Ø�4—=‘= &Ð)ð%
ð �t—{‘{Ð#Ø�D—K‘K×&Ñ&Ð'Ø�4—;‘; Ð'ð
ñgX€Fótr[   r!   c                   óÀ  — e Zd ZdZdZddgZddgZddgZd	Zd
Z	e
j                  Zg def‘dej                  f‘dej                   d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j*                  f‘dej.                  f‘dej.                  f‘dej.                  f‘dej                  df‘dej2                  df‘dej6                  f‘dej6                  f‘d ej6                  d!f‘d"ej6                  d#f‘d$ej6                  d%f‘d&ej6                  f‘d'ef‘d( eeee«      f‘ eej@                  d)d)¬*«      ejB                  f‘ eejD                  d)d)¬*«      ejF                  f‘ eejH                  d)d)¬*«      ef‘ eejJ                  d)d+¬*«       eejL                  ee'«      f‘ eejP                  d)d)¬*«      e)f‘d,ef‘d-ejT                  d.f‘d/e'f‘d0ej                   fd1ej                   d2fd3ej                   fgd4ej                  fd5ejV                  fd6ejV                  fdej                  d2fgd7ej2                  fd8ejV                  fd6ejV                  fdej2                  d2fgd9ej6                  fd5ej6                  fdej6                  d2fgd:ej6                  fd8ej6                  fdej6                  d2fgd;ej6                  fd<ej6                  fd-ej6                  d2fgd;ejT                  fd<ejT                  jV                  fd-ejT                  d2fgd=œZ,d>„ Z-y?)@r   z’
    GoogleSQL is Google's standard SQL dialect, formerly known as ZetaSQL.

    The list of keywords includes reserved words for future use.
    Ú	GoogleSQLÚ	googlesqlÚzetasqlz*.googlesqlz*.googlesql.sqlztext/x-google-sqlztext/x-google-sql-auxz+https://cloud.google.com/bigquery/googlesqlz2.19r`   r"  rb   r$  r%  r  r&  r'  r  r(  r  r)  r*  r+  r,  rz   r-  r}   r.  r/  r0  r1  r2  r3  r4  r5  r6  r  r7  r8  rl   r9  r;  r<  r=  r>  r?  rA  rt   ru   r@  rB  ry   rC  rD  r|   rx   r{   rE  rF  )r~   r$  r-  r.  r2  r4  r6  r>  c                 óŽ   — t        j                  | j                  «       «      }dt        d„ |j	                  «       D «       «      z  S )Ngü©ñÒMbP?c              3   ó6   K  — | ]  \  }}|t         v r|–— Œ y ­wrE   )Úgooglesql_identifiers)ri   ÚtÚcounts      r@   rk   z.GoogleSqlLexer.analyse_text.<locals>.<genexpr>  s#   è ø€ ð :±¡X Q¨ØÔ#8Ñ8ô !±ùs   ‚)ÚcollectionsÚCounterÚsplitÚsumr•   )r2   r’   s     r@   r  zGoogleSqlLexer.analyse_text  s>   € Ü×$Ñ$ T§Z¡Z£\Ó2ˆØ”sñ :°·±´ó :ó :ñ :ð 	:r[   N).rV   rW   rX   rY   r   r€   rò   r�   r‚   rƒ   r„   r…   r†   r   r   r‡   rˆ   r   r  rI  r�   r�   r   rJ  r   rK  r   rŽ   r   r   r   r   Ú	constantsrø   Útypesr÷   ÚkeywordsÚfunctionnamesr  r   Ú	operatorsr   rP  rR  r’   r  r“   r[   r@   r   r   s  sÆ  „ ñð €DØ˜IÐ&€GØÐ 1Ð2€IØ$Ð&=Ð>€IØ
7€CØ€Mà�M‰M€EðJ
Ø�ZÐ ðJ
ð ˜wŸ~™~Ð.ð	J
ð
 �W×&Ñ&Ð(;Ð<ðJ
ð " 6§:¡:Ð.ðJ
ð ˜VŸZ™ZÐ(ðJ
ð ˜&Ÿ*™*Ð%ðJ
ð ˜Ÿ™Ð$ðJ
ð  .¨v¯|©|Ð<ð!J
ð" .¨v¯|©|Ð<ð#J
ð$ # F§L¡LÐ1ð%J
ð& 3°F·N±NÐCð'J
ð, ZØ�\‰\ðð-J
ð4 kØ�\‰\ðð5J
ð>&ð
 —‘ðð=J
ðP �6—=‘=Ð"8Ð9ðQJ
ðR �6—=‘=Ð"8Ð9ðSJ
ðX JÈ4Ï=É=ÐYðYJ
ðZ ˜tŸ}™}Ð-ð[J
ð\ �D—M‘MÐ#;Ð<ð]J
ð^ �D—M‘MÐ#;Ð<ð_J
ð` �D—M‘MÐ#=Ð>ðaJ
ðb �D—M‘MÐ"ðcJ
ðh ! 'Ð*ðiJ
ðj *©8°G¸ZÈÓ+QÐRðkJ
ñp Ð&×0Ñ0¸ÀuÔMÈtÏ}É}Ð]ðqJ
ñr Ð&×,Ñ,°UÀ5ÔIÈ7Ï<É<ÐXðsJ
ñt Ð&×/Ñ/¸ÀeÔLÈgÐVðuJ
ñv Ð&×4Ñ4¸UÈ>ÔZÙ�d—m‘m Z°Ó=ð?ðwJ
ñz Ð&×0Ñ0¸ÀuÔMÈxÐXð{J
ðJ (¨Ð.ðKJ
ðL �4—;‘;Ð 4Ð5ðMJ
ðR ˜Ð%ðSJ
ð` �w×(Ñ(Ð)Ø�W×&Ñ&¨Ð/Ø�G×%Ñ%Ð&ð
ð ˜Ÿ™Ð'Ø�F—M‘MÐ"Ø$ f§m¡mÐ4Ø�6—=‘= &Ð)ð	!
ð ˜Ÿ™Ð'Ø�F—M‘MÐ"Ø$ f§m¡mÐ4Ø�6—=‘= &Ð)ð	!
ð �t—}‘}Ð%Ø�D—M‘MÐ"Ø�4—=‘= &Ð)ð#
ð �t—}‘}Ð%Ø�D—M‘MÐ"Ø�4—=‘= &Ð)ð#
ð �t—}‘}Ð%Ø�D—M‘MÐ"Ø�4—=‘= &Ð)ð%
ð �t—{‘{Ð#Ø�D—K‘K×&Ñ&Ð'Ø�4—;‘; Ð'ð
ñII€FóV:r[   r   c                   ó8   — e Zd ZdZdZdgZdgZdgZdZdZ	dZ
d	„ Zy
)r"   z3
    Lexer for example sessions using sqlite3.
    Ú
sqlite3conÚsqlite3z*.sqlite3-consoleztext/x-sqlite3-consolezhttps://www.sqlite.orgz0.11zsqlite3/sqlite3.sqlite3-consolec           	   #   óÖ  K  — t        di | j                  ¤Ž}d}g }t        j                  |«      D �]	  }|j	                  «       }t
        j                  |«      }|�^|j                  t        |«      dt        j                  |d d fgf«       |j                  t        |«      dt        dfgf«       ||dd  z  }Œ‰|r't        ||j                  |«      «      E d {  –—†  d}g }|j                  d«      r$|j                  «       t        j                   |f–— Œç|j                  «       t        j"                  |f–— �Œ |r$t        ||j                  |«      «      E d {  –—†  y y 7 ŒŠ7 Œ­w)Nrµ   r   r/   rg   é   zSQL error: r“   )r   rP   rº   r7   r5   Úsqlite_prompt_rer1   rR   r½   r   r¾   r   r   r<   rQ   r9   Ú	TracebackrÂ   )rG   rÆ   rK   rÈ   rÉ   r1   rÊ   Úprompt_matchs           r@   r<   z)SqliteConsoleLexer.get_tokens_unprocessed   si  è ø€ ÜÑ&˜Ÿ™Ñ&ˆàˆØˆ
Ü×%Ñ% d×+ˆEØ—;‘;“=ˆDÜ+×1Ñ1°$Ó7ˆLØÐ'Ø×!Ñ!¤3 w£<Ø%&¬¯©¸¸R¸a¸Ð$AÐ#Bð#Dô Eà×!Ñ!¤3 w£<Ø%&¬
°CÐ$8Ð#9ð#;ô <à˜4  ˜8Ñ#‘áÜ,¨ZØ-0×-GÑ-GÈÓ-Pó R÷ Rð Rà �GØ!#�JØ—?‘? =Ô1Ø Ÿ;™;›=¬'×*;Ñ*;¸TÐBÓBà Ÿ;™;›=¬'¯.©.¸$Ð?Ô?ð% ,ñ& Ü$ ZØ%(×%?Ñ%?ÀÓ%HóJ÷ Jñ Jð ðRøðJús%   ‚CE)ÃE%ÃBE)ÅE'ÅE)Å'E)N)rV   rW   rX   rY   r   r€   rò   r�   r‚   rƒ   rÎ   r<   r“   r[   r@   r"   r"     s:   „ ñð €DØˆk€GØ$Ð%€IØ)Ð*€IØ
"€CØ€MØ0€HóJr[   r"   c                   óÔ   — e Zd ZdZdZdZdgZdgZdgZdZ	e
j                  Zdd	efd
efdefdej"                  fdej&                  fdefdej*                  fdej*                  fdefg	iZy)r#   z,
    Lexer for Relation Query Language.
    ÚRQLz"http://www.logilab.org/project/rqlÚrqlz*.rqlz
text/x-rqlz2.0r~   r`   zŽ(DELETE|SET|INSERT|UNION|DISTINCT|WITH|WHERE|BEING|OR|AND|NOT|GROUPBY|HAVING|ORDERBY|ASC|DESC|LIMIT|OFFSET|TODAY|NOW|TRUE|FALSE|NULL|EXISTS)\bz
[+*/<>=%-]z)(Any|is|instance_of|CWEType|CWRelation)\brp   z[A-Z_]\w*\??r    rþ   rÿ   N)rV   rW   rX   rY   r   r‚   r€   rò   r�   rƒ   r„   r…   r†   r   r   r   r   rŒ   r   r�   r   r‡   r   r’   r“   r[   r@   r#   r#   =  s¤   „ ñð €DØ
.€CØˆg€GØ�	€IØ�€IØ€Mà�M‰M€EàØ�ZÐ ð5à6=ð?ð ˜HÐ%Ø9¸4¿<¹<ÐHØ˜Ÿ™Ð'Ø˜dÐ#Ø˜fŸm™mÐ,Ø˜fŸm™mÐ,Ø˜kÐ*ð
ð�Fr[   r#   )@rY   r\  r„   Úpygments.lexerr   r   r   r   r   Úpygments.lexersr   r	   r
   r   r   r   r   Úpygments.tokenr   r   r   r   r   r   r   r   r   r   r   Ú__all__Úcompilerº   rj  r…   r0   r:   r  r  r  r  r  rc  rb  ra  rY  rA   rC   r   r   rŸ   r¼   r¿   rÀ   Úre_errorrÃ   r¤   r   r   r   r    r!   r   r"   r#   r“   r[   r@   Ú<module>rv     sN  ðñ(óT Û 	ç LÕ LÝ /Ý +Ý .Ý )Ý *ß <÷4÷ 4÷ 4ñ 4òO€ð ˆ2�:‰:�gÓ€Ø�2—:‘:Ð9Ó:Ð àˆb�j‰jÐ3°R·]±]ÓC€àˆ�
‰
�9˜bŸm™mÓ,€ð %˜"Ÿ*™*Ð%8Ó9Ð Ø%˜2Ÿ:™:Ð&7Ó8Ð ØˆR�Z‰Z˜	 2§=¡=Ó1€
Ø�"—*‘*Ð-¨r¯}©}Ó=€Ø�2—:‘:Ð0Ó1Ð ð ×%Ñ%Ø×"Ñ"ñ#à×Ññ ð ò!3÷H"ñ "ôJ6�L *ô 6ôr �< ô  ôF�\ :ô ð6 ˆB�J‰JÐ5Ó6€	Ø�"—*‘*˜XÓ&€Ø�—‘Ð,Ó-€Ø�"—*‘*Ð2Ó3€Øˆ2�:‰:Ð'Ó(€ØˆR�Z‰Zð7ó8€
÷
ñ ô,F˜5ô FôRy˜:ô yôx&ˆzô &ôRS�zô Sôlz�ô zôz]:�Zô ]:ô@'J˜ô 'JôTˆzõ r[   