| Server IP : 138.197.162.186 / Your IP : 216.73.216.184 Web Server : nginx/1.24.0 System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
�
|�e� � �P � d Z ddlmZmZ ddlmZmZmZmZm Z dgZ
G d� de� Zy)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 � � e Zd ZdZdZdZdgZdgZddefde j fd eeej e� fd
eeej e� fd eeee� fd eeeeee� fd
eeee� fd eeee� fdefg iZy)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
�SmartGameFormatzhttps://www.red-bean.com/sgf/�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 �Builtinr r �Number�Dater r �tokens� � �5/usr/lib/python3/dist-packages/pygments/lexers/sgf.pyr
r
s� � �� �D�
)�C��g�G�� �I� �
��%��
�\�\�
� "�
�k�7�>�>�;�
?�
A� 5�
�k�7�<�<��
=�
?� #�
�k�6�;�
7�
9� 0�
�k�6�;���
L�
N� ,�
�k�6�;�
7�
9�
�
�k�:�{�
;�
=�
�Z� �5
��Fr N)r �pygments.lexerr r �pygments.tokenr r r r r �__all__r
r r r �<module>r! s) ��� 0� I� I�!�
"��+�:� +r