mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
Improve XML highligher
This commit is contained in:
@@ -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