mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 00:17:14 -04:00
Remove what remains of filetype auto-detection
This commit is contained in:
@@ -5,11 +5,6 @@ package syntax
|
||||
func init() {
|
||||
syntaxMap["xml"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: xml
|
||||
|
||||
detect:
|
||||
filename: "\\.(xml|sgml?|rng|plist)$"
|
||||
header: "(<rss|<!DOCTYPE|<xsd|<\\?xml)"
|
||||
|
||||
rules:
|
||||
- type: "(<(/)?[a-zA-Z:]+>)"
|
||||
- type: "(<(/)?[a-zA-Z:]+[[:space:]]+)"
|
||||
|
||||
Reference in New Issue
Block a user