lib/rouge/lexers/xml.rb in rouge-3.5.1 vs lib/rouge/lexers/xml.rb in rouge-3.6.0

- old
+ new

@@ -7,10 +7,10 @@ title "XML" desc %q(<desc for="this-lexer">XML</desc>) tag 'xml' filenames '*.xml', '*.xsl', '*.rss', '*.xslt', '*.xsd', '*.wsdl', '*.svg', '*.plist' - mimetypes 'text/xml', 'application/xml', 'image/svg+xml', + mimetypes 'text/xml', 'application/xml', 'image/svg+xml', 'application/rss+xml', 'application/atom+xml' def self.detect?(text) return false if text.doctype?(/html/) return true if text =~ /\A<\?xml\b/