ó
xiù\c           @   s½   d  Z  d d l Z d d l m Z m Z m Z m Z d d l m Z m	 Z	 m
 Z
 m Z m Z m Z m Z d d d g Z d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ d e f d
 „  ƒ  YZ d S(   sÚ  
    pygments.lexers.typoscript
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for TypoScript

    `TypoScriptLexer`
        A TypoScript lexer.

    `TypoScriptCssDataLexer`
        Lexer that highlights markers, constants and registers within css.

    `TypoScriptHtmlDataLexer`
        Lexer that highlights markers, constants and registers within html tags.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iÿÿÿÿN(   t
   RegexLexert   includet   bygroupst   using(   t   Textt   Commentt   Namet   Stringt   Numbert   Operatort   Punctuationt   TypoScriptLexert   TypoScriptCssDataLexert   TypoScriptHtmlDataLexerc           B   sÃ   e  Z d  Z d Z d g Z i d e e e j e ƒ f d e e j	 e
 e j e j e j	 ƒ f d e e e j	 e j e
 e j e j	 e ƒ f d e f d e f d e f d	 e f d
 e f g d 6Z RS(   sn   
    Lexer that highlights markers, constants and registers within css blocks.

    .. versionadded:: 2.2
    t   TypoScriptCssDatat   typoscriptcssdatas   (.*)(###\w+###)(.*)s%   (\{)(\$)((?:[\w\-]+\.)*)([\w\-]+)(\})s+   (.*)(\{)([\w\-]+)(\s*:\s*)([\w\-]+)(\})(.*)s   \s+s   /\*(?:(?!\*/).)*\*/sG   (?<!(#|\'|"))(?:#(?!(?:[a-fA-F0-9]{6}|[a-fA-F0-9]{3}))[^\n#]+|//[^\n]*)s   [<>,:=.*%+|]s   [\w"\-!/&;(){}]+t   root(   t   __name__t
   __module__t   __doc__t   namet   aliasesR   R   R   t   Constantt   SymbolR	   R   R   t   tokens(    (    (    s9   lib/python2.7/site-packages/pygments/lexers/typoscript.pyR      s"   				c           B   sÆ   e  Z d  Z d Z d g Z i d e j f d e f d e e e j	 e ƒ f d e e j
 e e j	 e j	 e j
 ƒ f d e e e j
 e j	 e e j	 e j
 e ƒ f d e f d	 e f d
 e f g d 6Z RS(   sm   
    Lexer that highlights markers, constants and registers within html tags.

    .. versionadded:: 2.2
    t   TypoScriptHtmlDatat   typoscripthtmldatas   (INCLUDE_TYPOSCRIPT)s   (EXT|FILE|LLL):[^}\n"]*s   (.*)(###\w+###)(.*)s%   (\{)(\$)((?:[\w\-]+\.)*)([\w\-]+)(\})s+   (.*)(\{)([\w\-]+)(\s*:\s*)([\w\-]+)(\})(.*)s   \s+s   [<>,:=.*%+|]s   [\w"\-!/&;(){}#]+R   (   R   R   R   R   R   R   t   ClassR   R   R   R   R	   R   R   (    (    (    s9   lib/python2.7/site-packages/pygments/lexers/typoscript.pyR   A   s    				c           B   s   e  Z d  Z d Z d g Z d g Z d g Z e j e j	 BZ
 d Z i e d ƒ e d ƒ e d ƒ e d	 ƒ e d
 ƒ e d ƒ e d ƒ e d ƒ e d ƒ e d ƒ e d ƒ g d 6d e e j e j e e j ƒ f d e j f d e e e j ƒ f d e j f d e j f d e j f d e j f d e j f g d 6d e f g d
 6d e e ƒ f d e f d e e j e e j e e ƒ ƒ f g d 6d e j f d e j f d  e j f g d 6d! e f d" e e e ƒ f g d	 6d# e f g d 6d$ e f g d 6d% e j f g d 6d& e e j e e j e j e j ƒ f d' e e j e j e e j e j ƒ f d( e j f g d 6d) e f d* e f d+ e f g d 6d, e f g d 6Z  RS(-   sx   
    Lexer for TypoScript code.

    http://docs.typo3.org/typo3cms/TyposcriptReference/

    .. versionadded:: 2.2
    t
   TypoScriptt
   typoscripts   *.typoscripts   text/x-typoscriptg        t   commentt   constantt   htmlt   labelt
   whitespacet   keywordst   punctuationt   operatort	   structuret   literalt   otherR   s  (?i)(\[)(browser|compatVersion|dayofmonth|dayofweek|dayofyear|device|ELSE|END|GLOBAL|globalString|globalVar|hostname|hour|IP|language|loginUser|loginuser|minute|month|page|PIDinRootline|PIDupinRootline|system|treeLevel|useragent|userFunc|usergroup|version)([^\]]*)(\])sì   (?=[\w\-])(HTMLparser|HTMLparser_tags|addParams|cache|encapsLines|filelink|if|imageLinkWrap|imgResource|makelinks|numRows|numberFormat|parseFunc|replacement|round|select|split|stdWrap|strPad|tableStyle|tags|textStyle|typolink)(?![\w\-])s  (?:(=?\s*<?\s+|^\s*))(cObj|field|config|content|constants|FEData|file|frameset|includeLibs|lib|page|plugin|register|resources|sitemap|sitetitle|styles|temp|tt_[^:.\s]*|types|xmlnews|INCLUDE_TYPOSCRIPT|_CSS_DEFAULT_STYLE|_DEFAULT_PI_VARS|_LOCAL_LANG)(?![\w\-])s*  (?=[\w\-])(CASE|CLEARGIF|COA|COA_INT|COBJ_ARRAY|COLUMNS|CONTENT|CTABLE|EDITPANEL|FILE|FILES|FLUIDTEMPLATE|FORM|HMENU|HRULER|HTML|IMAGE|IMGTEXT|IMG_RESOURCE|LOAD_REGISTER|MEDIA|MULTIMEDIA|OTABLE|PAGE|QTOBJECT|RECORDS|RESTORE_REGISTER|SEARCHRESULT|SVG|SWFOBJECT|TEMPLATE|TEXT|USER|USER_INT)(?![\w\-])sŽ   (?=[\w\-])(ACTIFSUBRO|ACTIFSUB|ACTRO|ACT|CURIFSUBRO|CURIFSUB|CURRO|CUR|IFSUBRO|IFSUB|NO|SPC|USERDEF1RO|USERDEF1|USERDEF2RO|USERDEF2|USRRO|USR)so   (?=[\w\-])(GMENU_FOLDOUT|GMENU_LAYERS|GMENU|IMGMENUITEM|IMGMENU|JSMENUITEM|JSMENU|TMENUITEM|TMENU_LAYERS|TMENU)s"   (?=[\w\-])(PHP_SCRIPT(_EXT|_INT)?)s   (?=[\w\-])(userFunc)(?![\w\-])s   \s+s   <\S[^\n>]*>s	   &[^;\n]*;s-   (?s)(_CSS_DEFAULT_STYLE)(\s*)(\()(.*(?=\n\)))s   0x[0-9A-Fa-f]+t?s   [0-9]+s   (###\w+###)s   (EXT|FILE|LLL):[^}\n"]*s*   (?![^\w\-])([\w\-]+(?:/[\w\-]+)+/?)(\S*\n)s   [,.]s   [<>,:=.*%+|]s   [{}()\[\]\\]s%   (\{)(\$)((?:[\w\-]+\.)*)([\w\-]+)(\})s#   (\{)([\w\-]+)(\s*:\s*)([\w\-]+)(\})s%   (#[a-fA-F0-9]{6}\b|#[a-fA-F0-9]{3}\b)sG   (?<!(#|\'|"))(?:#(?!(?:[a-fA-F0-9]{6}|[a-fA-F0-9]{3}))[^\n#]+|//[^\n]*)s   /\*(?:(?!\*/).)*\*/s   (\s*#\s*\n)s   [\w"\-!/&;]+(!   R   R   R   R   R   t	   filenamest	   mimetypest   ret   DOTALLt	   MULTILINEt   flagst   priorityR   R   R   R   R   R   R   t   FunctionR	   t   BuiltinR   R   R   R   R   t   Hext   IntegerR
   t   CharR   R   (    (    (    s9   lib/python2.7/site-packages/pygments/lexers/typoscript.pyR   d   sv   																		(		(   R   R+   t   pygments.lexerR    R   R   R   t   pygments.tokenR   R   R   R   R   R	   R
   t   __all__R   R   R   (    (    (    s9   lib/python2.7/site-packages/pygments/lexers/typoscript.pyt   <module>   s   "4##