Ñò Žf¯Jc4@s„dZddkZyeWn#ej oddklZnXddklZlZl Z l Z l Z ddk l Z ddklZddklZlZlZlZlZlZlZddklZlZlZlZlZlZlZl Z l!Z!l"Z"l#Z#dd k$l%Z%l&Z&d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3g*Z'defd4„ƒYZ(defd5„ƒYZ)defd6„ƒYZ*d"efd7„ƒYZ+d#efd8„ƒYZ,d$efd9„ƒYZ-d&efd:„ƒYZ.d%efd;„ƒYZ/d'efd<„ƒYZ0d(efd=„ƒYZ1d)efd>„ƒYZ2d*efd?„ƒYZ3d+efd@„ƒYZ4dAefdB„ƒYZ5d-efdC„ƒYZ6d.efdD„ƒYZ7d/efdE„ƒYZ8d0efdF„ƒYZ9defdG„ƒYZ:dHefdI„ƒYZ;defdJ„ƒYZ<defdK„ƒYZ=d!efdL„ƒYZ>d efdM„ƒYZ?defdN„ƒYZ@defdO„ƒYZAdefdP„ƒYZBdefdQ„ƒYZCd efdR„ƒYZDd efdS„ƒYZEd efdT„ƒYZFd efdU„ƒYZGdefdV„ƒYZHdefdW„ƒYZIdefdX„ƒYZJdefdY„ƒYZKdefdZ„ƒYZLdefd[„ƒYZMdefd\„ƒYZNdefd]„ƒYZOd^efd_„ƒYZPd,efd`„ƒYZQd1efda„ƒYZRd2efdb„ƒYZSd3efdc„ƒYZTdS(dsã pygments.lexers.templates ~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for various template engines' markup. :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. iÿÿÿÿN(tSet(tPhpLexert HtmlLexertXmlLexertJavascriptLexertCssLexer(t PythonLexer(t JavaLexer(tLexertDelegatingLexert RegexLexertbygroupstincludetusingtthis( tErrort PunctuationtTexttCommenttOperatortKeywordtNametStringtNumbertOthertToken(thtml_doctype_matchestlooks_like_xmlt HtmlPhpLexert XmlPhpLexert CssPhpLexertJavascriptPhpLexertErbLexert RhtmlLexert XmlErbLexert CssErbLexertJavascriptErbLexert SmartyLexertHtmlSmartyLexertXmlSmartyLexertCssSmartyLexertJavascriptSmartyLexert DjangoLexertHtmlDjangoLexertCssDjangoLexertXmlDjangoLexertJavascriptDjangoLexert GenshiLexertHtmlGenshiLexertGenshiTextLexertCssGenshiLexertJavascriptGenshiLexert MyghtyLexertMyghtyHtmlLexertMyghtyXmlLexertMyghtyCssLexertMyghtyJavascriptLexert MakoLexert MakoHtmlLexert MakoXmlLexertMakoJavascriptLexert MakoCssLexertJspLexert CheetahLexertCheetahHtmlLexertCheetahXmlLexertCheetahJavascriptLexert EvoqueLexertEvoqueHtmlLexertEvoqueXmlLexercBsVeZdZdZdgZdgZeideiƒZ d„Z d„Z d„Z RS(s  Generic `ERB `_ (Ruby Templating) lexer. Just highlights ruby code between the preprocessor directives, other data is left untouched by the lexer. All options are also forwarded to the `RubyLexer`. tERBterbsapplication/x-ruby-templatings*(<%%|%%>|<%=|<%#|<%-|<%|-%>|%>|^%[^%].*?$)cKs3ddkl}|||_ti||dS(Niÿÿÿÿ(t RubyLexer(tpygments.lexers.agileRHt ruby_lexerRt__init__(tselftoptionsRH((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK=sc csÖ|ii|ƒ}|iƒd}}y•xŽto†|djo4|iƒ}|t|fV|t|ƒ7}d}q,|djoÑ|iƒ}|djo"|t|fV|d7}d}qµ|djoM|ti|fV|iƒ}|dt|fV|dt|ƒ7}d}qµ|djo…|ti|fV|t|ƒ7}|iƒ}d}x5|i i |ƒD]!\}} } ||| | fVqiW|t|ƒ7}d}qµ|djo(|t |fV|t|ƒ7}d}qµ|ti|dfVd}x=|i i |dƒD]%\}} } |d|| | fVqW|t|ƒ7}d}q,|djoV|iƒ}|djo|t|fVn|ti|fV|t|ƒ7}d}q,q,WWnt j od SXd S(s¡ Since ERB doesn't allow "<%" and other tags inside of ruby blocks we have to use a split approach here that fails for that too. iis<%%s%%>is<%#is<%s<%=s<%-s%>s-%>N(s<%%s%%>(s<%s<%=s<%-(s%>s-%>(s%>s-%>( t _block_retsplittreversetTruetpopRtlenRtPreprocRJtget_tokens_unprocessedRt IndexError( RLttextttokenststatetidxtvalttagtdatatr_idxtr_tokentr_value((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRUBsn                      cCs#d|jod|jodSdS(Ns<%s%>gš™™™™™Ù?((RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyt analyse_text†s( t__name__t __module__t__doc__tnametaliasest mimetypestretcompiletMRNRKRURa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR ,s     Dc BsFeZdZdZdgZdgZdgZeiei BZ hde fde e ie e iƒfde e ieedeƒe iƒfd e e ieieƒdfd e idfgd 6d efd e idfdeifdeifdefdeifdefdeifdeifdeifg d6Zd„ZRS(s¹ Generic `Smarty `_ template lexer. Just highlights smarty code between the preprocessor directives, other data is left untouched by the lexer. tSmartytsmartys*.tplsapplication/x-smartys[^{]+s(\{)(\*.*?\*)(\})s(\{php\})(.*?)(\{/php\})t startinlines#(\{)(/?[a-zA-Z_][a-zA-Z0-9_]*)(\s*)s\{troots\s+s\}s#pops#[a-zA-Z_][a-zA-Z0-9_]*#s*\$[a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)*s[~!%^&*()+=|\[\]:;,.<>/?{}@-]s(true|false|null)s>[0-9](\.[0-9]*)?(eE[+-][0-9])?[flFLdD]?|0[xX][0-9a-fA-F]+[Ll]?s"(\\\\|\\"|[^"])*"s'(\\\\|\\'|[^'])*'s[a-zA-Z_][a-zA-Z0-9_]*cCsŽd}tid|ƒo|d7}ntid|ƒo|d7}ntid|ƒo|d7}ntid|ƒo|d7}n|S(Ngs\{if\s+.*?\}.*?\{/if\}g333333Ã?s\{include\s+file=.*?\}s \{foreach\s+.*?\}.*?\{/foreach\}s \{\$.*?\}g{®Gáz„?(Rhtsearch(RWtrv((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaµs( RbRcRdReRft filenamesRgRht MULTILINEtDOTALLtflagsRR RRTR RRQRtFunctionRtVariableRRtConstantRRtDoubletSinglet AttributeRXRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR%‹s8            cBs8eZdZdZddgZddgZeieiBZ hde fde i dfd e fd e e i eeee i e e i eeee i ƒ fd e e i eeee i ee i eeee i ƒ fd e e i eeeeiƒd fde e i eeƒd fde fgd6de eeeiƒfde eeeeeiƒfdeifdefdeifdeifdeifdeifdeifdefdefg d6defde ee i ƒdfedƒgd6defd e ee i ƒdfedƒd!efgd 6Zd"„ZRS(#s Generic `django `_ and `jinja `_ template lexer. It just highlights django/jinja code between the preprocessor directives, other data is left untouched by the lexer. s Django/Jinjatdjangotjinjasapplication/x-django-templatingsapplication/x-jinjas[^{]+s\{\{tvars\{[*#].*?[*#]\}sJ(\{%)(-?\s*)(comment)(\s*-?)(%\})(.*?)(\{%)(-?\s*)(endcomment)(\s*-?)(%\})sB(\{%)(-?\s*)(raw)(\s*-?)(%\})(.*?)(\{%)(-?\s*)(endraw)(\s*-?)(%\})s1(\{%)(-?\s*)(filter)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)tblocks$(\{%)(-?\s*)([a-zA-Z_][a-zA-Z0-9_]*)s\{Rns!(\|)(\s*)([a-zA-Z_][a-zA-Z0-9_]*)s-(is)(\s+)(not)?(\s+)?([a-zA-Z_][a-zA-Z0-9_]*)s%(_|true|false|none|True|False|None)\bsm(in|as|reversed|recursive|not|and|or|is|if|else|import|with(?:(?:out)?\s*context)?|scoped|ignore\s+missing)\bs(loop|block|super|forloop)\bs[a-zA-Z][a-zA-Z0-9_]*s\.[a-zA-Z0-9_]+s:?"(\\\\|\\"|[^"])*"s:?'(\\\\|\\'|[^'])*'s([{}()\[\]+\-*/,:]|[><=]=?)s>[0-9](\.[0-9]*)?(eE[+-][0-9])?[flFLdD]?|0[xX][0-9a-fA-F]+[Ll]?tvarnamess\s+s (-?)(\}\})s#pops (-?)(%\})t.cCsd}tid|ƒdj o|d7}ntid|ƒdj o|d7}ntid|ƒdj o|d7}n|S(Ngs\{%\s*(block|extends)gš™™™™™Ù?s\{%\s*if\s*.*?%\}gš™™™™™¹?s \{\{.*?\}\}(RhRotNone(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa s(RbRcRdReRfRgRhRjtSRtRRRTR RRRRuRtPseudotBuiltinRvRRxRyRR RRXRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR*Âs\                 cBs_eZdZdZdgZddgZdgZhdefdee i dee i e i e eƒe i ƒfdee i de i e i e eƒe i ƒfd ee i e i e eƒe i ƒfd ee i e i e eƒe i ƒfd e i fd ee i e eƒe i ƒfd efdee i e eƒeƒfdeeeƒfg d6ZRS(s¹ Generic `myghty templates`_ lexer. Code that isn't Myghty markup is yielded as `Token.Other`. *New in Pygments 0.6.* .. _myghty templates: http://www.myghty.org/ tMyghtytmyghtys*.mytt autodelegatesapplication/x-myghtys\s+s1(<%(def|method))(\s*)(.*?)(>)(.*?)()(?s)s%(<%(\w+))(.*?)(>)(.*?)()(?s)s(<&[^|])(.*?)(,.*?)?(&>)s(<&\|)(.*?)(,.*?)?(&>)(?s)ss(<%!?)(.*?)(%>)(?s)s(?<=^)#[^\n]*(\n|\Z)s(?<=^)(%)([^\n]*)(\n|\Z)sË(?sx) (.+?) # anything, followed by: (?: (?<=\n)(?=[%#]) | # an eval or comment line (?=.*?s(<%)([\w\.\:]+)R\s()s<%(?=([\w\.\:]+))t ondeftagss(<%(?:!?))(.*?)(%>)(?s)s(\$\{)(.*?)(\})s\(?sx) (.+?) # anything, followed by: (?: (?<=\n)(?=%|\#\#) | # an eval or comment line (?=\#\*) | # multiline comment (?=s#pops".*?"s'.*?'s[^\s>]+tattr(RbRcRdReRfRqRgR RRRTRRR RRR„RR RzRRX(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR9‹sD        cBs/eZdZdZdgZdgZd„ZRS(sx Subclass of the `MakoLexer` that highlights unlexed data with the `HtmlLexer`. *New in Pygments 0.7.* s HTML+Makos html+makostext/html+makocKs tt|ƒitt|dS(N(R‰R:RKRR9(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKÛs(RbRcRdReRfRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR:Ïs   cBs/eZdZdZdgZdgZd„ZRS(sw Subclass of the `MakoLexer` that highlights unlexer data with the `XmlLexer`. *New in Pygments 0.7.* sXML+Makosxml+makosapplication/xml+makocKs tt|ƒitt|dS(N(R‰R;RKRR9(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKës(RbRcRdReRfRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR;ßs   cBs8eZdZdZddgZdddgZd„ZRS(s~ Subclass of the `MakoLexer` that highlights unlexer data with the `JavascriptLexer`. *New in Pygments 0.7.* sJavaScript+Makosjs+makosjavascript+makosapplication/x-javascript+makostext/x-javascript+makostext/javascript+makocKs tt|ƒitt|dS(N(R‰R<RKRR9(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKýs(RbRcRdReRfRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR<ïs  cBs/eZdZdZdgZdgZd„ZRS(sw Subclass of the `MakoLexer` that highlights unlexer data with the `CssLexer`. *New in Pygments 0.7.* sCSS+Makoscss+makos text/css+makocKs tt|ƒitt|dS(N(R‰R=RKRR9(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK s(RbRcRdReRfRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR=s   tCheetahPythonLexercBseZdZd„ZRS(sI Lexer for handling Cheetah's special $ tokens in Python syntax. ccsnt|i}xX|i|ƒD]G\}}}|tijo|djo ti}n|||fVqWdS(Nt$(RRMRURRRRT(RLRWtpylexertposttype_tvalue((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRUs  (RbRcRdRU(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRŽsc BsäeZdZdZddgZddgZddgZhdeeƒfd efd ei fd ei fd eei e e ƒei ƒfd eei e e ƒƒfdeei e e ƒei ƒfde fde fg d6ZRS(s2 Generic `cheetah templates`_ lexer. Code that isn't Cheetah markup is yielded as `Token.Other`. This also works for `spitfire templates`_ which use the same syntax. .. _cheetah templates: http://www.cheetahtemplate.org/ .. _spitfire templates: http://code.google.com/p/spitfire/ tCheetahtcheetahtspitfires*.tmpls*.sptsapplication/x-cheetahsapplication/x-spitfires (##[^\n]*)$s#[*](.|\n)*?[*]#s#end[^#\n]*(?:#|$)s#slurp$s(#[a-zA-Z]+)([^#\n]*)(#|$)s*(\$)([a-zA-Z_][a-zA-Z0-9_\.]*[a-zA-Z0-9_])s(\$\{!?)(.*?)(\})(?s)s(?sx) (.+?) # anything, followed by: (?: (?=[#][#a-zA-Z]*) | # an eval comment (?=\$[a-zA-Z_{]) | # a substitution \Z # end of string ) s\s+Rn(RbRcRdReRfRqRgR RRTR RŽRRRX(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR?!s*          cBs5eZdZdZddgZddgZd„ZRS(s_ Subclass of the `CheetahLexer` that highlights unlexer data with the `HtmlLexer`. s HTML+Cheetahs html+cheetahs html+spitfirestext/html+cheetahstext/html+spitfirecKs tt|ƒitt|dS(N(R‰R@RKRR?(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKWs(RbRcRdReRfRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR@Ms   cBs5eZdZdZddgZddgZd„ZRS(s^ Subclass of the `CheetahLexer` that highlights unlexer data with the `XmlLexer`. s XML+Cheetahs xml+cheetahs xml+spitfiresapplication/xml+cheetahsapplication/xml+spitfirecKs tt|ƒitt|dS(N(R‰RARKRR?(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKfs(RbRcRdReRfRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRA\s   cBsGeZdZdZddddgZdddd d d gZd „ZRS( se Subclass of the `CheetahLexer` that highlights unlexer data with the `JavascriptLexer`. sJavaScript+Cheetahs js+cheetahsjavascript+cheetahs js+spitfiresjavascript+spitfires application/x-javascript+cheetahstext/x-javascript+cheetahstext/javascript+cheetahs!application/x-javascript+spitfirestext/x-javascript+spitfirestext/javascript+spitfirecKs tt|ƒitt|dS(N(R‰RBRKRR?(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK{s(RbRcRdReRfRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRBks  c BseZdZdZdgZddgZhdefdeee ƒfdeee i ƒdfe d ƒd efgd 6d ed fde e ƒd fdeeee e ƒƒd fded fdeeee ƒd fgd6dee i e e ƒe i ƒfdeifgd 6ZRS(s] A lexer that highlights `genshi `_ text templates. s Genshi Textt genshitextsapplication/x-genshi-texts text/x-genshis [^#\$\s]+s ^(\s*)(##.*)$s ^(\s*)(#)t directivetvariables[#\$\s]Rns\ns#pops(?:def|for|if)\s+.*s (choose|when|with)([^\S\n]+)(.*)s(choose|otherwise)\bs(end\w*)([^\S\n]*)(.*)s(?)s'<\s*(script|style)\s*.*?>.*?<\s*/\1\s*>s<\s*py:[a-zA-Z0-9]+tpytags<\s*[a-zA-Z0-9:]+R\R™s[<\$]Rns\s+s[a-zA-Z0-9_:-]+\s*=tpyattrs/?\s*>s#pops (")(.*?)(")s (')(.*?)(')s[^\s>]+spy:[a-zA-Z0-9_-]+\s*=Rt"s attr-dstringt's attr-sstrings[^\s>]*tstringss[^"'$]+s(?`_ and `kid `_ kid HTML templates. s HTML+Genshis html+genshishtml+kids*.htmls*.htms*.xhtmlstext/html+genshicKs tt|ƒitt|dS(N(R‰R0RKRRš(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKîscCsid}tid|ƒdj o|d7}ntid|ƒdj o|d7}n|ti|ƒdS(Ngs \$\{.*?\}gš™™™™™É?s py:(.*?)=["']g{®Gáz„?(RhRoRRRa(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaòs ( RbRcRdReRftalias_filenamesRgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR0ãs   cBsVeZdZdZddddgZdgZdgZdd gZd „Zd „Z RS( sˆ A lexer that highlights `genshi `_ and `kid `_ kid XML templates. tGenshitgenshitkids xml+genshisxml+kids*.kids*.xmlsapplication/x-genshisapplication/x-kidcKs tt|ƒitt|dS(N(R‰R/RKRRš(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKscCsid}tid|ƒdj o|d7}ntid|ƒdj o|d7}n|ti|ƒdS(Ngs \$\{.*?\}gš™™™™™É?s py:(.*?)=["']g{®Gáz„?(RhRoRRRa(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa s ( RbRcRdReRfRqR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR/ûs    cBsPeZdZdZddddgZdgZddd gZd „Zd „ZRS( sK A lexer that highlights javascript code in genshi text templates. sJavaScript+Genshi Texts js+genshitexts js+genshisjavascript+genshitextsjavascript+genshis*.jssapplication/x-javascript+genshistext/x-javascript+genshistext/javascript+genshicKs tt|ƒitt|dS(N(R‰R3RKRR1(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK!scCsti|ƒdS(Ngš™™™™™©?(R/Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa&s( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR3s     cBsDeZdZdZddgZdgZdgZd„Zd„ZRS(sK A lexer that highlights CSS definitions in genshi text templates. sCSS+Genshi Textscss+genshitexts css+genshis*.cssstext/css+genshicKs tt|ƒitt|dS(N(R‰R2RKRR1(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK4scCsti|ƒdS(Ngš™™™™™©?(R/Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa8s( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR2*s    cBsVeZdZdZdddgZdgZdddgZd gZd „Zd „Z RS( s Subclass of the ERB lexer that highlights the unlexed data with the html lexer. Nested Javascript and CSS is highlighted too. tRHTMLtrhtmlshtml+erbs html+rubys*.rhtmls*.htmls*.htms*.xhtmlstext/html+rubycKs tt|ƒitt|dS(N(R‰R!RKRR (RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKJscCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gà?(R RaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaMs ( RbRcRdReRfRqR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR!<s   cBsDeZdZdZddgZdgZdgZd„Zd„ZRS(so Subclass of `ErbLexer` which highlights data outside preprocessor directives with the `XmlLexer`. sXML+Rubysxml+erbsxml+rubys*.xmlsapplication/xml+rubycKs tt|ƒitt|dS(N(R‰R"RKRR (RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK`scCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gš™™™™™Ù?(R RaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRacs ( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR"Us    cBsDeZdZdZddgZdgZdgZd„Zd„ZRS(sS Subclass of `ErbLexer` which highlights unlexed data with the `CssLexer`. sCSS+Rubyscss+erbscss+rubys*.csss text/css+rubycKs tt|ƒitt|dS(N(R‰R#RKRR (RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKtscCsti|ƒdS(Ngš™™™™™©?(R Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaws( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR#js    cBsPeZdZdZddddgZdgZddd gZd „Zd „ZRS( s^ Subclass of `ErbLexer` which highlights unlexed data with the `JavascriptLexer`. sJavaScript+Rubysjs+erbsjavascript+erbsjs+rubysjavascript+rubys*.jssapplication/x-javascript+rubystext/x-javascript+rubystext/javascript+rubycKs tt|ƒitt|dS(N(R‰R$RKRR (RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKˆscCsti|ƒdS(Ngš™™™™™©?(R Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaŒs( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR${s   cBsbeZdZdZdgZdgZdddddgZd d d d d gZd„Zd„Z RS(sˆ Subclass of `PhpLexer` that highlights unhandled data with the `HtmlLexer`. Nested Javascript and CSS is highlighted too. sHTML+PHPshtml+phps*.phtmls*.phps*.htmls*.htms*.xhtmls *.php[345]sapplication/x-phpsapplication/x-httpd-phpsapplication/x-httpd-php3sapplication/x-httpd-php4sapplication/x-httpd-php5cKs tt|ƒitt|dS(N(R‰RRKRR(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK scCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gà?(RRaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa£s ( RbRcRdReRfRqR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRs      cBsGeZdZdZdgZdddgZdgZd„Zd„ZRS( sS Subclass of `PhpLexer` that higlights unhandled data with the `XmlLexer`. sXML+PHPsxml+phps*.xmls*.phps *.php[345]sapplication/xml+phpcKs tt|ƒitt|dS(N(R‰RRKRR(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK´scCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gš™™™™™Ù?(RRaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa·s ( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRªs   cBsAeZdZdZdgZdgZdgZd„Zd„ZRS(sU Subclass of `PhpLexer` which highlights unmatched data with the `CssLexer`. sCSS+PHPscss+phps*.csss text/css+phpcKs tt|ƒitt|dS(N(R‰RRKRR(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKÈscCsti|ƒdS(Ngš™™™™™©?(RRa(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaËs( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR¾s    cBsJeZdZdZddgZdgZdddgZd„Zd „ZRS( s` Subclass of `PhpLexer` which highlights unmatched data with the `JavascriptLexer`. sJavaScript+PHPsjs+phpsjavascript+phps*.jssapplication/x-javascript+phpstext/x-javascript+phpstext/javascript+phpcKs tt|ƒitt|dS(N(R‰RRKRR(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKÜscCs ti|ƒS(N(RRa(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaàs( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRÏs    cBsJeZdZdZdgZddddgZdgZd„Zd „ZRS( s” Subclass of the `SmartyLexer` that highighlights unlexed data with the `HtmlLexer`. Nested Javascript and CSS is highlighted too. s HTML+Smartys html+smartys*.htmls*.htms*.xhtmls*.tplstext/html+smartycKs tt|ƒitt|dS(N(R‰R&RKRR%(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKñscCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gà?(R%RaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaôs ( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR&äs   cBsDeZdZdZdgZddgZdgZd„Zd„ZRS(s] Subclass of the `SmartyLexer` that highlights unlexed data with the `XmlLexer`. s XML+Smartys xml+smartys*.xmls*.tplsapplication/xml+smartycKs tt|ƒitt|dS(N(R‰R'RKRR%(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKscCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gš™™™™™Ù?(R%RaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa s ( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR'ûs    cBsDeZdZdZdgZddgZdgZd„Zd„ZRS(s] Subclass of the `SmartyLexer` that highlights unlexed data with the `CssLexer`. s CSS+Smartys css+smartys*.csss*.tplstext/css+smartycKs tt|ƒitt|dS(N(R‰R(RKRR%(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKscCsti|ƒdS(Ngš™™™™™©?(R%Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRas( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR(s    cBsMeZdZdZddgZddgZdddgZd „Zd „ZRS( sd Subclass of the `SmartyLexer` that highlights unlexed data with the `JavascriptLexer`. sJavaScript+Smartys js+smartysjavascript+smartys*.jss*.tplsapplication/x-javascript+smartystext/x-javascript+smartystext/javascript+smartycKs tt|ƒitt|dS(N(R‰R)RKRR%(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK/scCsti|ƒdS(Ngš™™™™™©?(R%Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa3s( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR)"s    cBsMeZdZdZddgZdddgZddgZd „Zd „ZRS( s” Subclass of the `DjangoLexer` that highighlights unlexed data with the `HtmlLexer`. Nested Javascript and CSS is highlighted too. sHTML+Django/Jinjas html+djangos html+jinjas*.htmls*.htms*.xhtmlstext/html+djangostext/html+jinjacKs tt|ƒitt|dS(N(R‰R+RKRR*(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKDscCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gà?(R*RaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaGs ( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR+7s   cBsGeZdZdZddgZdgZddgZd„Zd„ZRS( s] Subclass of the `DjangoLexer` that highlights unlexed data with the `XmlLexer`. sXML+Django/Jinjas xml+djangos xml+jinjas*.xmlsapplication/xml+djangosapplication/xml+jinjacKs tt|ƒitt|dS(N(R‰R-RKRR*(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKYscCs2ti|ƒd}t|ƒo|d7}n|S(Ng{®Gáz„?gš™™™™™Ù?(R*RaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRa\s ( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR-Ns    cBsGeZdZdZddgZdgZddgZd„Zd„ZRS( s] Subclass of the `DjangoLexer` that highlights unlexed data with the `CssLexer`. sCSS+Django/Jinjas css+djangos css+jinjas*.cssstext/css+djangostext/css+jinjacKs tt|ƒitt|dS(N(R‰R,RKRR*(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKnscCsti|ƒdS(Ngš™™™™™©?(R*Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaqs( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR,cs    cBsYeZdZdZddddgZdgZddd d d d gZd „Zd„ZRS(sd Subclass of the `DjangoLexer` that highlights unlexed data with the `JavascriptLexer`. sJavaScript+Django/Jinjas js+djangosjavascript+djangosjs+jinjasjavascript+jinjas*.jssapplication/x-javascript+djangosapplication/x-javascript+jinjastext/x-javascript+djangostext/x-javascript+jinjastext/javascript+djangostext/javascript+jinjacKs tt|ƒitt|dS(N(R‰R.RKRR*(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK†scCsti|ƒdS(Ngš™™™™™©?(R*Ra(RW((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaŠs( RbRcRdReRfR RgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR.us    t JspRootLexercBsdeZdZhdedfdefdefdefgd6dedfd eeƒfgd6ZRS( su Base for the `JspLexer`. Yields `Token.Other` for area outside of JSP tags. *New in Pygments 0.7.* s<%\S?tsecsCs[^<]+ts#pops[\w\W]+?(?=%>|\Z)(RbRcRdRRR RRX(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR¦Žs   cBsAeZdZdZdgZdgZdgZd„Zd„ZRS(sB Lexer for Java Server Pages. *New in Pygments 0.7.* sJava Server Pagetjsps*.jspsapplication/x-jspcKs tt|ƒitt|dS(N(R‰R>RKRR¦(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRK²scCsZti|ƒd}t|ƒo|d7}nd|jod|jo|d7}n|S(Ng{®Gáz„?gš™™™™™Ù?s<%s%>gš™™™™™¹?(RRaR(RWRp((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRaµs  ( RbRcRdReRfRqRgRKRa(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyR>§s    cBsueZdZdZdgZdgZdgZeiZ hde fde i dfde fd e i fd e eeiedeedƒfd e eeiedeeeƒedƒfd e eeiedeeƒedƒfd e eeiƒfde edeeƒeiddedƒfde fg d6de i fde i dfde i dfde i fgd6ZRS(sS For files using the Evoque templating system. *New in Pygments 1.1.* tEvoquetevoques*.evoquesapplication/x-evoques[^#$]+s#\[tcomments\$\$s\$\w+:[^$\n]*\$s'(\$)(begin|end)(\{(%)?)(.*?)((?(4)%)\})sG(\$)(evoque|overlay)(\{(%)?)(\s*[#\w\-"\'.]+[^=,%}]+?)?(.*?)((?(4)%)\})s!(\$)(\w+)(\{(%)?)(.*?)((?(4)%)\})s(\$)(else|rof|fi)s%(\$\{(%)?)(.*?)((!)(.*?))?((?(2)%)\})t#Rns[^\]#]s#pushs\]#s#pops[\]#]N(RbRcRdReRfRqRgRhRsRtRRt MultilineR RRR„RRR RRX(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRC¾s:        cBs8eZdZdZdgZdgZdgZd„ZRS(sz Subclass of the `EvoqueLexer` that highlights unlexed data with the `HtmlLexer`. *New in Pygments 1.1.* s HTML+Evoques html+evoques*.htmlstext/html+evoquecKs tt|ƒitt|dS(N(R‰RDRKRRC(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKþs(RbRcRdReRfRqRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRDòs    cBs8eZdZdZdgZdgZdgZd„ZRS(sy Subclass of the `EvoqueLexer` that highlights unlexed data with the `XmlLexer`. *New in Pygments 1.1.* s XML+Evoques xml+evoques*.xmlsapplication/xml+evoquecKs tt|ƒitt|dS(N(R‰RERKRRC(RLRM((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyRKs(RbRcRdReRfRqRgRK(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyREs    (URdRhtsett NameErrortsetsRtpygments.lexers.webRRRRRRIRtpygments.lexers.compiledRtpygments.lexerRR R R R R Rtpygments.tokenRRRRRRRRRRRt pygments.utilRRt__all__R R%R*R4R5R6R8R7R9R:R;R<R=RŽR?R@RARBR1RšR0R/R3R2R!R"R#R$RRRRR&R'R(R)R+R-R,R.R¦R>RCRDRE(((s=/usr/lib/python2.6/site-packages/pygments/lexers/templates.pyt sŒ (4L            _7S0D ,#@4