lib/rouge/lexers/erb.rb in rouge_ecl-0.0.1 vs lib/rouge/lexers/erb.rb in rouge_ecl-1.0.0

- old
+ new

@@ -9,9 +9,13 @@ tag 'erb' aliases 'eruby', 'rhtml' filenames '*.erb', '*.erubis', '*.rhtml', '*.eruby' + def self.analyze_text(text) + return 0.4 if text =~ /<%.*%>/ + end + def initialize(opts={}) @ruby_lexer = Ruby.new(opts) super(opts) end