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