class Rouge::Lexers::Prolog
Public Class Methods
analyze_text(text)
click to toggle source
# File lib/rouge/lexers/prolog.rb, line 12 def self.analyze_text(text) return 0.1 if text =~ /\A\w+(\(\w+\,\s*\w+\))*\./ return 0.1 if text.include? ':-' end