U
    lufÂ  ã                   @   sJ   d Z ddlmZmZ ddlmZmZmZmZm	Z	 dgZ
G dd„ deƒZdS )zÙ
    pygments.lexers.sgf
    ~~~~~~~~~~~~~~~~~~~

    Lexer for Smart Game Format (sgf) file format.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Ú
RegexLexerÚbygroups)ÚNameÚLiteralÚStringÚPunctuationÚ
WhitespaceÚSmartGameFormatLexerc                   @   sœ   e Zd ZdZdZdZdgZdgZddefde	j
fd	eeejeƒfd
eeejeƒfdeeeeƒfdeeeeeeƒfdeeeeƒfdeeeeƒfdefg	iZdS )r	   z¶
    Lexer for Smart Game Format (sgf) file format.

    The format is used to store game records of board games for two players
    (mainly Go game).

    .. versionadded:: 2.4
    ZSmartGameFormatzhttps://www.red-bean.com/sgf/Zsgfz*.sgfÚrootz[():;]+a  (A[BW]|AE|AN|AP|AR|AS|[BW]L|BM|[BW]R|[BW]S|[BW]T|CA|CH|CP|CR|DD|DM|DO|DT|EL|EV|EX|FF|FG|G[BW]|GC|GM|GN|HA|HO|ID|IP|IT|IY|KM|KO|LB|LN|LT|L|MA|MN|M|N|OB|OM|ON|OP|OT|OV|P[BW]|PC|PL|PM|RE|RG|RO|RU|SO|SC|SE|SI|SL|SO|SQ|ST|SU|SZ|T[BW]|TC|TE|TM|TR|UC|US|VW|V|[BW]|C)z(\[)([0-9.]+)(\])z$(\[)([0-9]{4}-[0-9]{2}-[0-9]{2})(\])z(\[)([a-z]{2})(\])z(\[)([a-z]{2})(:)([a-z]{2})(\])z(\[)([\w\s#()+,\-.:?]+)(\])z(\[)(\s.*)(\])z\s+N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesr   r   ZBuiltinr   r   ÚNumberÚDater   r   Útokens© r   r   ú7/tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/sgf.pyr	      s>   ûÿÿ
ÿÿ
ÿ
ÿæÿN)r   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   Ú__all__r	   r   r   r   r   Ú<module>   s   
