ó
xiù\c           @   sg   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
 d e f d „  ƒ  YZ d S(   sÙ   
    pygments.lexers.sgf
    ~~~~~~~~~~~~~~~~~~~

    Lexer for Smart Game Format (sgf) file format.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iÿÿÿÿ(   t
   RegexLexert   bygroups(   t   Namet   Literalt   Stringt   Textt   Punctuationt   SmartGameFormatLexerc           B   sÒ   e  Z d  Z d Z d g Z d g Z i 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 g d 6Z RS(   s  
    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
    t   SmartGameFormatt   sgfs   *.sgfs   [\s():;]s  (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)s   (\[)([0-9.]+)(\])s$   (\[)([0-9]{4}-[0-9]{2}-[0-9]{2})(\])s   (\[)([a-z]{2})(\])s   (\[)([a-z]{2})(:)([a-z]{2})(\])s   (\[)([\w\s#()+,\-.:?]+)(\])s   (\[)(\s.*)(\])t   root(   t   __name__t
   __module__t   __doc__t   namet   aliasest	   filenamesR   R   t   BuiltinR   R   t   Numbert   DateR   R   t   tokens(    (    (    s2   lib/python2.7/site-packages/pygments/lexers/sgf.pyR      s(   
				N(   R   t   pygments.lexerR    R   t   pygments.tokenR   R   R   R   R   t   __all__R   (    (    (    s2   lib/python2.7/site-packages/pygments/lexers/sgf.pyt   <module>
   s   (	