def analyse_text(text): rv = JavaLexer.analyse_text(text) - 0.01 if looks_like_xml(text): rv += 0.4 if '<%' in text and '%>' in text: rv += 0.1 return rv
def analyse_text(text): if looks_like_xml(text) and "<xsl" in text: return 0.8
def analyse_text(text): if looks_like_xml(text): return 0.5
def analyse_text(text): rv = PhpLexer.analyse_text(text) - 0.01 if looks_like_xml(text): rv += 0.4 return rv
def analyse_text(text): if looks_like_xml(text) and '<xsl' in text: return 0.8