Set XML filetype for .svg and files with xml version tag

This commit is contained in:
ariasuni
2019-01-07 01:30:54 +01:00
parent 3a8898dadd
commit aaac5466d1
2 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
filetype: xml
detect:
filename: "\\.(xml|sgml?|rng|plist)$"
filename: "\\.(xml|sgml?|rng|svg|plist)$"
header: "<\\?xml.*\\?>"
rules:
- identifier: "<.*?>"
@@ -9,7 +10,7 @@ rules:
start: "<!DOCTYPE"
end: "[/]?>"
rules: []
- comment:
- comment:
start: "<!--"
end: "-->"
rules: []