1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-23 00:55:39 +01:00

* 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

View File

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