j P S r SSKJrJr SSKJrJrJrJrJ r S/r
" S S\5 rg)z
pygments.lexers.sgf
~~~~~~~~~~~~~~~~~~~
Lexer for Smart Game Format (sgf) file format.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)
RegexLexerbygroups)NameLiteralStringPunctuation
WhitespaceSmartGameFormatLexerc \ rS rSrSrSrSrS/rS/rSr SS \
4S
\R 4S\
" \
\R \
5 4S\
" \
\R \
5 4S
\
" \
\\
5 4S\
" \
\\
\\
5 4S\
" \
\\
5 4S\
" \
\\
5 4S\4/ 0rSrg)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).
SmartGameFormatzhttps://www.red-bean.com/sgf/sgfz*.sgfz2.4rootz[():;]+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____firstlineno____doc__nameurlaliases filenames
version_addedr r Builtinr r NumberDater r tokens__static_attributes__r F/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/lexers/sgf.pyr
r
s D
)CgG IM
%
\\
"
k7>>;
?
A 5
k7<<
=
? #
k6;
7
9 0
k6;
L
N ,
k6;
7
9
k:{
;
=
Z 5
Fr N)r pygments.lexerr r pygments.tokenr r r r r __all__r
r r r!