lib/rouge/lexers/php.rb in rouge-2.2.1 vs lib/rouge/lexers/php.rb in rouge-3.0.0

- old
+ new

@@ -73,13 +73,11 @@ php_user_filter interface implements public private protected abstract clone try catch throw this use namespace yield ) end - def self.analyze_text(text) - return 1 if text.shebang?('php') - return 0.3 if /<\?(?!xml)/ =~ text - 0 + def self.detect?(text) + return true if text.shebang?('php') end state :root do # some extremely rough heuristics to decide whether to start inline or not rule(/\s*(?=<)/m) { delegate parent; push :template }