syntax: xml: colorize user-defined entities differently
Also improve two comments.
This commit is contained in:
parent
b568705eec
commit
81e5b57d74
@ -5,7 +5,7 @@ header "<\?xml.*version=.*\?>"
|
|||||||
magic "(XML|SGML) (sub)?document"
|
magic "(XML|SGML) (sub)?document"
|
||||||
comment "<!--|-->"
|
comment "<!--|-->"
|
||||||
|
|
||||||
# The entire content of the tag:
|
# First the entire content of the tag (for the attributes):
|
||||||
color green start="<" end=">"
|
color green start="<" end=">"
|
||||||
|
|
||||||
# The angled brackets and the name of the tag:
|
# The angled brackets and the name of the tag:
|
||||||
@ -21,5 +21,6 @@ color #888 start="<!DOCTYPE[^>]*$" end="^[^<]*>"
|
|||||||
# Comments:
|
# Comments:
|
||||||
color yellow start="<!--" end="-->"
|
color yellow start="<!--" end="-->"
|
||||||
|
|
||||||
# Escapes:
|
# Entities (custom and predefined):
|
||||||
color red "&[^;]*;"
|
color pink "&[^; ]+;"
|
||||||
|
color red "&(amp|apos|gt|lt|quot);"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user