2010-07-29 00:15:43 +02:00
|
|
|
## Here is an example for xml files.
|
|
|
|
##
|
|
|
|
|
2019-12-19 04:08:43 +01:00
|
|
|
syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$"
|
2019-12-18 17:20:31 +01:00
|
|
|
header "<\?xml.*version=.*\?>"
|
|
|
|
magic "(XML|SGML) (sub)?document"
|
2019-12-18 17:13:13 +01:00
|
|
|
comment "<!--|-->"
|
2019-12-18 21:23:01 +01:00
|
|
|
|
2010-07-29 00:15:43 +02:00
|
|
|
color white "^.+$"
|
2021-03-19 17:28:49 +01:00
|
|
|
# Attributes
|
2010-07-29 00:15:43 +02:00
|
|
|
color green start="<" end=">"
|
2021-03-19 17:28:49 +01:00
|
|
|
color brightgreen "=\"[^\"]*\""
|
|
|
|
# Opening tags
|
|
|
|
color brightcyan "<[^/][^> ]*"
|
|
|
|
color brightcyan ">"
|
|
|
|
# Closing tags
|
|
|
|
color cyan "</[^> ]*>"
|
|
|
|
# Self-closing part
|
|
|
|
color cyan "/>"
|
2010-07-29 00:15:43 +02:00
|
|
|
color yellow start="<!DOCTYPE" end="[/]?>"
|
|
|
|
color yellow start="<!--" end="-->"
|
|
|
|
color red "&[^;]*;"
|
2016-12-06 22:19:02 +01:00
|
|
|
|
|
|
|
## Trailing spaces
|
|
|
|
color ,green "[[:space:]]+$"
|