Example #1
0
 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
Example #2
0
 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
Example #3
0
File: web.py Project: Mekyi/crunchy
 def analyse_text(text):
     if looks_like_xml(text) and "<xsl" in text:
         return 0.8
Example #4
0
File: web.py Project: Mekyi/crunchy
 def analyse_text(text):
     if looks_like_xml(text):
         return 0.5
Example #5
0
 def analyse_text(text):
     rv = PhpLexer.analyse_text(text) - 0.01
     if looks_like_xml(text):
         rv += 0.4
     return rv
Example #6
0
 def analyse_text(text):
     rv = PhpLexer.analyse_text(text) - 0.01
     if looks_like_xml(text):
         rv += 0.4
     return rv
Example #7
0
 def analyse_text(text):
     if looks_like_xml(text) and '<xsl' in text:
         return 0.8
Example #8
0
 def analyse_text(text):
     if looks_like_xml(text):
         return 0.5