mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 04:41:21 +03:00
syntax: xml: colorize /> properly, and colorize prolog tags differently
Use lightgrey for the prolog tags, as they normally are unimportant boiler-plate stuff. Comments are likely to be more relevant. Any /> is part of the tag itself, not of the attributes.
This commit is contained in:
parent
fe42eb7a1a
commit
b568705eec
@ -9,13 +9,16 @@ comment "<!--|-->"
|
||||
color green start="<" end=">"
|
||||
|
||||
# The angled brackets and the name of the tag:
|
||||
color cyan "<[^> ]+|>"
|
||||
color cyan "<[^> ]+|/?>"
|
||||
|
||||
# The strings inside the tag:
|
||||
color magenta ""[^"]*""
|
||||
|
||||
# Prolog stuff:
|
||||
color #888 "<\?.+\?>|<!DOCTYPE[^>]+>|\]>"
|
||||
color #888 start="<!DOCTYPE[^>]*$" end="^[^<]*>"
|
||||
|
||||
# Comments:
|
||||
color yellow start="<!DOCTYPE" end="[/]?>"
|
||||
color yellow start="<!--" end="-->"
|
||||
|
||||
# Escapes:
|
||||
|
Loading…
Reference in New Issue
Block a user