mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-10-26 19:49:56 -04:00
Improve XML highligher
This commit is contained in:
1 parent
0117fef643
commit
67484a4fc4
1 file changed
+6
-1
@@ -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: "[/]?>"
|
||||
|
||||
Reference in new issue
Block a user