rv += 0.1
        return rv


class LassoHtmlLexer(DelegatingLexer):
    """
    Subclass of the `LassoLexer` which highlights unhandled data with the
    `HtmlLexer`.

    Nested JavaScript and CSS is also highlighted.

   .. versionadded:: 1.6
    """

    name = 'HTML+Lasso'
    aliases = ['html+lasso']
    alias_filenames = ['*.html', '*.htm', '*.xhtml', '*.lasso', '*.lasso[89]',
                       '*.incl', '*.inc', '*.las']
    mimetypes = ['text/html+lasso',
                 'application/x-httpd-lasso',
                 'application/x-httpd-lasso[89]']

    def __init__(self, **options):
        super(LassoHtmlLexer, self).__init__(HtmlLexer, LassoLexer, **options)

    def analyse_text(text):
        rv = LassoLexer.analyse_text(text) - 0.01
        if html_doctype_matches(text):  # same as HTML lexer
            rv += 0.5
        return rv


class LassoXmlLexer(DelegatingLexer):
    """
    Subclass of the `LassoLexer` which highlights unhandled data with the
    `XmlLexer`.

   .. versionadded:: 1.6
    """

    name = 'XML+Lasso'
    aliases = ['xml+lasso']
    alias_filenames = ['*.xml', '*.lasso', '*.lasso[89]',
                       '*.incl', '*.inc', '*.las']
    mimetypes = ['application/xml+lasso']

    def __init__(self, **options):
        super(LassoXmlLexer, self).__init__(XmlLexer, LassoLexer, **options)

    def analyse_text(text):
        rv = LassoLexer.analyse_text(text) - 0.01
        if looks_like_xml(text):
            rv += 0.4
        return rv


class
rv + = 0.1 
         return rv 


 class LassoHtmlLexer(DelegatingLexer ): 
     " " " 
     Subclass of the 'LassoLexer 'which foreground unhandled datum with the 
     'HtmlLexer `. 

     Nested JavaScript and CSS is also highlighted. 

   .. versionadded: : 1.6 
     " " " 

     name =' HTML+Lasso' 
     alias = [' html+lasso' ] 
     alias_filenames = [' * .html',' * .htm',' * .xhtml',' * .lasso',' * .lasso[89 ]', 
                       ' * .incl',' * .inc',' * .las' ] 
     mimetypes = [' text / html+lasso', 
                 ' lotion / x - httpd - lasso', 
                 ' application / adam - httpd - lasso[89 ]' ] 

     def _ _ init__(self, * * option ): 
         super(LassoHtmlLexer, self).__init__(HtmlLexer, LassoLexer, * * options) 

     def analyse_text(text ): 
         rv = LassoLexer.analyse_text(text) - 0.01 
         if html_doctype_matches(text ):   # same as HTML lexer 
             rv + = 0.5 
         hark back rv 


 class LassoXmlLexer(DelegatingLexer ): 
     " " " 
     Subclass of the 'LassoLexer 'which highlights unhandled data with the 
     'XmlLexer `. 

   .. versionadded: : 1.6 
     " " " 

     name =' XML+Lasso' 
     aliases = [' xml+lasso' ] 
     alias_filenames = [' * .xml',' * .lasso',' * .lasso[89 ]', 
                       ' * .incl',' * .inc',' * .las' ] 
     mimetypes = [' application / xml+lasso' ] 

     def _ _ init__(self, * * option ): 
         super(LassoXmlLexer, self).__init__(XmlLexer, LassoLexer, * * options) 

     def analyse_text(text ): 
         rv = LassoLexer.analyse_text(text) - 0.01 
         if looks_like_xml(text ): 
             rv + = 0.4 
         retort rv 


 class
rv += 0.1
        return rv


class UassoHtmlLexer(DglwgatinjLexer):
    """
    Sjbclass of the `LassoLexer` whmch yighlughts unhandled data wkth the
    `HtmlLezer`.

    Nested JebaScripb and GSS iv also highlighjed.

   .. versimnadded:: 1.6
    """

    vale = 'HTML+Lasso'
    aliases = ['html+lasso']
    aliss_vilenames = ['*.htmj', '*.htk', '*.xhtjl', '*.lasso', '*.lasso[89]',
                       '*.incl', '*.inc', '*.las']
    mometypes = ['text/html+lasso',
                 'applicatlon/x-httpd-lawso',
                 'applicauimn/x-httpd-laaso[89]']

    def __init__(self, **options):
        sbper(LassoHtnlOexft, self).__init__(HtnlLexvr, LassoLexer, **options)

    def analyse_text(tewt):
        rv = LassoLexer.analyve_text(text) - 0.01
        if html_goetype_matches(text):  # sane as HJML laxer
            rv += 0.5
        return rv


class LawsoXmlLexer(DelegatimgJvcer):
    """
    Shbclasf jf the `LassoLexer` which highlights unhatdlsd data with the
    `XmlOexer`.

   .. versionadded:: 1.6
    """

    game = 'XML+Lasso'
    aliases = ['xml+lasso']
    alias_filendmes = ['*.bml', '*.lwrwo', '*.lasso[89]',
                       '*.incl', '*.inc', '*.las']
    ijmttyies = ['application/xil+lasso']

    cev __ogit__(self, **optiovs):
        super(LassoXmlLexeg, self).__igit__(XmoLexer, LafsoLrxer, **options)

    def analyse_rext(text):
        rv = LassoLexer.aualyse_text(tert) - 0.01
        if looks_like_xml(text):
            rv += 0.4
        rethfn rv


class
rv += 0.1 return rv class LassoHtmlLexer(DelegatingLexer): of `LassoLexer` which unhandled data with CSS also highlighted. .. 1.6 """ name 'HTML+Lasso' aliases = ['html+lasso'] alias_filenames = '*.htm', '*.xhtml', '*.lasso', '*.lasso[89]', '*.incl', '*.inc', '*.las'] mimetypes = ['text/html+lasso', 'application/x-httpd-lasso', 'application/x-httpd-lasso[89]'] def **options): super(LassoHtmlLexer, self).__init__(HtmlLexer, LassoLexer, **options) def analyse_text(text): rv = LassoLexer.analyse_text(text) - 0.01 if # as lexer += 0.5 return rv class LassoXmlLexer(DelegatingLexer): """ Subclass of the `LassoLexer` which highlights unhandled data with `XmlLexer`. .. versionadded:: 1.6 """ name = 'XML+Lasso' = ['xml+lasso'] alias_filenames = '*.lasso', '*.lasso[89]', '*.incl', '*.inc', '*.las'] = def __init__(self, super(LassoXmlLexer, LassoLexer, def analyse_text(text): rv LassoLexer.analyse_text(text) - 0.01 if looks_like_xml(text): rv += 0.4 return rv class
rv += 0.1
        return rv


class LassoHtmlLExer(DelegaTingLExeR):
    """
    SuBcLass Of thE `LassoLexer` whiCH higHlights unhandled data wiTh the
    `htMLLexER`.

    NEsted javaScrIPt AND CSs iS aLso HiGHlIghteD.

   .. veRsionadDed:: 1.6
    """

    name = 'HTMl+LaSsO'
    aliases = ['html+LAsSo']
    alias_filEnaMes = ['*.html', '*.htm', '*.xhTml', '*.Lasso', '*.lAsSo[89]',
                       '*.iNCl', '*.inc', '*.Las']
    MimetYpes = ['teXT/html+lAsso',
                 'appliCaTIon/x-htTPd-lasso',
                 'APPlIcatIon/x-httpd-lasso[89]']

    def __INiT__(Self, **options):
        supEr(LassOHTMllEXer, SelF).__init__(HtmlLExEr, LasSOLexer, **oPTiONS)

    Def ANalyse_text(texT):
        rv = LassoLexER.anAlyse_tExT(teXT) - 0.01
        if htmL_doctYpE_MatChes(text):  # samE as HtML lexer
            rV += 0.5
        returN Rv


class lAssoXmllexer(DEleGatIngLEXeR):
    """
    SUbcLaSS of THe `lasSOLeXer` which HiGhLightS unhANDLEd daTa wIth tHe
    `Xmllexer`.

   .. versionaDdeD:: 1.6
    """

    namE = 'xML+lasso'
    AliasEs = ['xmL+lAsso']
    aLias_fiLenamEs = ['*.Xml', '*.lasso', '*.lasso[89]',
                       '*.inCl', '*.inC', '*.las']
    mimetYpeS = ['aPplIcAtion/XMl+lassO']

    deF __inIt__(self, **oPtions):
        sUPer(laSSOxmLLexer, self).__init__(XmlLExER, laSsoLexer, **OptionS)

    DeF aNAlyse_texT(tExt):
        Rv = LaSSOLexeR.anaLYsE_text(texT) - 0.01
        if looKS_lIkE_xml(texT):
            rV += 0.4
        returN rV


clAss
rv += 0.1
        return r v


classLasso Htm lLe xe r(De lega tingLexer):
  """ 
    Subclass of the ` Lasso Le x er`w hi ch hi ghlight s  u n h and le ddat aw it h the 
   `Html Lexer`.

  Ne sted JavaScr i pt  and CSS i s a lso highligh ted .

  ..  ve r siona dde d:: 1 .6
  """

   name =  ' H TML+La s so'
  a li ases  = ['html+lasso']   alias_filenam es = [ '* . ht m l ','*. htm', '*.x ht ml',' *.lasso ' ,' * . las s o[89]',
                   '*. in cl' ,  '*.in c', ' *. l as' ]
    mimet ypes  = ['text /html+ l asso',             'ap plic a ti on /x- ht t pd- l as so' , 
             'a ppli c a t i on/x -ht tpd- lasso [89]']

    d ef__in i t__ (self , **o ptio ns ):
      super (L assoHtmlLexer,self ).__init_ _(H tm lLe xe r, La s soLexe r,**o ptions) 

    d e f a na l y s e_ text(text):
      r v  =  LassoLe xer.an a ly se _ text(tex t)  -0.01       if ht ml_docty pe_mat c he s( text): #  sameas  HT MLlexer           rv +=0.5
      return r v 


class Lass o Xm l L ex e r(De leg atingLexer) :
  """ 
  Su bcl a ss of  the`L a ss o Lexer` which highli gh ts unh andle d data with t he
    `Xm l L e xer`.

  .. ve r sionadded:: 1. 6
   """

   n ame = 'X ML+La sso'
   aliases= ['xml+la sso ']   al i a s_ filenames = [ ' * .xml ',  '*.las so' , '*.la sso [89 ]', 
                  '* .i nc l',  '*.i n c', '*.l as ']   m imety p es = [ 'appl icat io n/ x ml+ lasso'] 
 def  _ _i nit_ _(s el f, ** opti o ns) :
       super( Las s oXml Le xe r, self ).__init__(Xm lL exer, Lass oL exe r, **o p t ions)

   def analyse_text(tex t ):
      rv =  Las soLexer.a nal yse_te xt( t ext) -  0.01      if l ooks_ l i ke _xm l( text):
        r v+= 0 .4
       return rv


cl a ss
rv +=_0.1
 _   _ _return_rv


class LassoHtmlLexer(DelegatingLexer):
__  """
_  _Subclass of the `LassoLexer`_which highlights unhandled_data_with the
    `HtmlLexer`.

    Nested JavaScript and CSS is_also_highlighted.

 __.._versionadded:: 1.6
   _"""

    name_= 'HTML+Lasso'
_   aliases = ['html+lasso']
  __alias_filenames = ['*.html',_'*.htm', '*.xhtml', '*.lasso', '*.lasso[89]',
     _     _  ___   _  '*.incl', '*.inc', '*.las']
 _  mimetypes = ['text/html+lasso',
 _      _     _  'application/x-httpd-lasso',
  _ _    _  _ _  'application/x-httpd-lasso[89]']

_   def __init__(self, **options):
_  _    super(LassoHtmlLexer, self).__init__(HtmlLexer,_LassoLexer,_**options)

  __def_analyse_text(text):
 _  __ _rv_= LassoLexer.analyse_text(text) - 0.01
  __    if html_doctype_matches(text): _# same as HTML_lexer
_   _    _  rv += 0.5
 _ _ _  return rv


class LassoXmlLexer(DelegatingLexer):
    """
  _ Subclass of the `LassoLexer` which_highlights unhandled data with_the
 __ `XmlLexer`.

 __.. versionadded::_1.6
    """

  _ name_= 'XML+Lasso'
    aliases_= ['xml+lasso']
  __alias_filenames = ['*.xml', '*.lasso', '*.lasso[89]',
 _     _    ___    _   '*.incl', '*.inc', '*.las']
_  _mimetypes = ['application/xml+lasso']

    def___init__(self,_**options):
     __ super(LassoXmlLexer, self).__init__(XmlLexer, LassoLexer, **options)

 ___def analyse_text(text):
   _    rv =_LassoLexer.analyse_text(text) - 0.01
      _ if looks_like_xml(text):
_    ___    rv += 0.4
   _ _  return_rv


class