lib/rouge/lexers/html.rb in rouge-3.19.0 vs lib/rouge/lexers/html.rb in rouge-3.20.0
- old
+ new
@@ -5,10 +5,10 @@
module Lexers
class HTML < RegexLexer
title "HTML"
desc "HTML, the markup language of the web"
tag 'html'
- filenames '*.htm', '*.html', '*.xhtml'
+ filenames '*.htm', '*.html', '*.xhtml', '*.cshtml'
mimetypes 'text/html', 'application/xhtml+xml'
def self.detect?(text)
return true if text.doctype?(/\bhtml\b/i)
return false if text =~ /\A<\?xml\b/