Improve XML highligher

This commit is contained in:
Jesse Portnoy
2023-07-20 17:41:50 +01:00
parent 0117fef643
commit 67484a4fc4
+6 -1
View File
@@ -2,9 +2,14 @@ filetype: xml
detect:
filename: "\\.(xml|sgml?|rng|plist)$"
header: "(<rss|<!DOCTYPE|<xsd)"
rules:
- identifier: "<.*?>"
- type: "(<(/)?[a-zA-Z:]+>)"
- type: "(<(/)?[a-zA-Z:]+[[:space:]]+)"
- constant.specialChar: '[a-zA-Z0-9]+="(.*)+"'
- statement: '([a-zA-Z0-9]+)='
- type: "(([[:space:]])?/?>([[:space:]]+)?$)"
- comment:
start: "<!DOCTYPE"
end: "[/]?>"