* XML: Enhance with different opening/closing tag colors

This commit is contained in:
Zach DeCook 2021-03-19 12:28:49 -04:00 committed by Zach DeCook
parent 723fffd7ee
commit 6b9770b236
1 changed files with 9 additions and 2 deletions

View File

@ -7,9 +7,16 @@ magic "(XML|SGML) (sub)?document"
comment "<!--|-->"
color white "^.+$"
# Attributes
color green start="<" end=">"
color cyan "<[^> ]+"
color cyan ">"
color brightgreen "=\"[^\"]*\""
# Opening tags
color brightcyan "<[^/][^> ]*"
color brightcyan ">"
# Closing tags
color cyan "</[^> ]*>"
# Self-closing part
color cyan "/>"
color yellow start="<!DOCTYPE" end="[/]?>"
color yellow start="<!--" end="-->"
color red "&[^;]*;"