コード例 #1
0
ファイル: templates.py プロジェクト: wolverine2k/crunchy
 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
コード例 #2
0
ファイル: templates.py プロジェクト: Mekyi/crunchy
 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
コード例 #3
0
ファイル: web.py プロジェクト: Mekyi/crunchy
 def analyse_text(text):
     if looks_like_xml(text) and "<xsl" in text:
         return 0.8
コード例 #4
0
ファイル: web.py プロジェクト: Mekyi/crunchy
 def analyse_text(text):
     if looks_like_xml(text):
         return 0.5
コード例 #5
0
ファイル: templates.py プロジェクト: wolverine2k/crunchy
 def analyse_text(text):
     rv = PhpLexer.analyse_text(text) - 0.01
     if looks_like_xml(text):
         rv += 0.4
     return rv
コード例 #6
0
ファイル: templates.py プロジェクト: Mekyi/crunchy
 def analyse_text(text):
     rv = PhpLexer.analyse_text(text) - 0.01
     if looks_like_xml(text):
         rv += 0.4
     return rv
コード例 #7
0
ファイル: web.py プロジェクト: wolverine2k/crunchy
 def analyse_text(text):
     if looks_like_xml(text) and '<xsl' in text:
         return 0.8
コード例 #8
0
ファイル: web.py プロジェクト: wolverine2k/crunchy
 def analyse_text(text):
     if looks_like_xml(text):
         return 0.5