2014-03-31 01:04:58 +04:00
|
|
|
## Colouring for Changelogs.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2014-04-13 19:57:05 +04:00
|
|
|
syntax "changelog" "Change[Ll]og.*"
|
2014-03-31 01:04:58 +04:00
|
|
|
|
|
|
|
# Author lines.
|
|
|
|
color green "^(19|20).*$"
|
|
|
|
# Dates.
|
2014-04-13 19:57:05 +04:00
|
|
|
color red "^(19|20)[0-9-]{8}"
|
2014-03-31 01:04:58 +04:00
|
|
|
# Email addresses.
|
|
|
|
color yellow "<[^>]*@[^>]*>"
|
|
|
|
|
2014-04-13 19:57:05 +04:00
|
|
|
# Command-line options.
|
|
|
|
color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+"
|
2015-03-28 22:56:41 +03:00
|
|
|
# Bug and patch numbers.
|
2015-11-08 22:44:57 +03:00
|
|
|
color cyan "bug #[0-9]{5,9}" "patch #[0-9]{4,9}"
|
2015-06-20 11:44:31 +03:00
|
|
|
# Probable constants, for variety.
|
2014-05-17 00:21:34 +04:00
|
|
|
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
2014-04-13 19:57:05 +04:00
|
|
|
# Key sequences.
|
|
|
|
color brightblue "\^[A-Z]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space"
|
|
|
|
|
2015-03-28 22:56:41 +03:00
|
|
|
# Changed files.
|
2015-06-20 11:44:31 +03:00
|
|
|
color magenta start="^( | {8})\* " end="(:( |$)|^$)"
|
|
|
|
|
|
|
|
# Release markers.
|
|
|
|
color brightblue "^(GNU )?nano[- ][0-9]\.[0-9]\.[^ ]+"
|
2015-03-28 22:56:41 +03:00
|
|
|
|
2014-03-31 01:04:58 +04:00
|
|
|
# Trailing whitespace.
|
|
|
|
color ,green "[[:space:]]+$"
|