| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pygments/lexers/__pycache__/ |
Upload File : |
a
SҼa� � @ sJ d Z ddlmZmZ ddlmZmZmZmZm Z dgZ
G dd� de�ZdS )z�
pygments.lexers.sgf
~~~~~~~~~~~~~~~~~~~
Lexer for Smart Game Format (sgf) file format.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�
RegexLexer�bygroups)�Name�Literal�String�Text�Punctuation�SmartGameFormatLexerc
@ s� e Zd ZdZdZdgZdgZddefdej fde
eeje�fd e
eej
e�fd
e
eee�fde
eeeee�fde
eee�fd
e
eee�fgiZdS )r a
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).
For more information about the definition of the format, see:
https://www.red-bean.com/sgf/
.. versionadded:: 2.4
ZSmartGameFormatZsgfz*.sgf�rootz[\s():;]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.*)(\])N)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenamesr r ZBuiltinr r �NumberZDater r �tokens� r r �7/usr/lib/python3.9/site-packages/pygments/lexers/sgf.pyr s:
���
��
�
���N)r Zpygments.lexerr r Zpygments.tokenr r r r r �__all__r r r r r �<module> s