mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 16:37:20 -04:00
Improve XML highligher
This commit is contained in:
@@ -2,9 +2,14 @@ filetype: xml
|
|||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.(xml|sgml?|rng|plist)$"
|
filename: "\\.(xml|sgml?|rng|plist)$"
|
||||||
|
header: "(<rss|<!DOCTYPE|<xsd)"
|
||||||
|
|
||||||
rules:
|
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:
|
- comment:
|
||||||
start: "<!DOCTYPE"
|
start: "<!DOCTYPE"
|
||||||
end: "[/]?>"
|
end: "[/]?>"
|
||||||
|
|||||||
Reference in New Issue
Block a user