2020-04-20 17:15:43 +00:00
|
|
|
## Syntax highlighting for Changelogs.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2020-09-14 17:37:45 +00:00
|
|
|
## Original author: Benno Schulenberg
|
|
|
|
## License: GPL version 3 or newer
|
|
|
|
|
2018-05-18 18:40:08 +00:00
|
|
|
syntax changelog "Change[Ll]og[^/]*$"
|
2014-03-30 21:04:58 +00:00
|
|
|
|
|
|
|
# Author lines.
|
2018-11-03 20:12:44 +00:00
|
|
|
color green "^(19|20).*"
|
2014-03-30 21:04:58 +00:00
|
|
|
# Dates.
|
2014-04-13 15:57:05 +00:00
|
|
|
color red "^(19|20)[0-9-]{8}"
|
2014-03-30 21:04:58 +00:00
|
|
|
# Email addresses.
|
|
|
|
color yellow "<[^>]*@[^>]*>"
|
|
|
|
|
2014-04-13 15:57:05 +00:00
|
|
|
# Command-line options.
|
|
|
|
color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+"
|
2015-03-28 19:56:41 +00:00
|
|
|
# Bug and patch numbers.
|
2020-04-21 10:47:08 +00:00
|
|
|
color cyan "(BZ|bug|patch)[ ]#[0-9]+" "PR [[:alnum:]]+/[0-9]+"
|
2015-06-20 08:44:31 +00:00
|
|
|
# Probable constants, for variety.
|
2014-05-16 20:21:34 +00:00
|
|
|
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
2014-04-13 15:57:05 +00:00
|
|
|
# Key sequences.
|
2016-01-31 13:20:40 +00:00
|
|
|
color brightblue "\^[A-Z^\]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space"
|
2014-04-13 15:57:05 +00:00
|
|
|
|
2015-03-28 19:56:41 +00:00
|
|
|
# Changed files.
|
2015-06-20 08:44:31 +00:00
|
|
|
color magenta start="^( | {8})\* " end="(:( |$)|^$)"
|
|
|
|
|
|
|
|
# Release markers.
|
|
|
|
color brightblue "^(GNU )?nano[- ][0-9]\.[0-9]\.[^ ]+"
|
2015-03-28 19:56:41 +00:00
|
|
|
|
2014-03-30 21:04:58 +00:00
|
|
|
# Trailing whitespace.
|
|
|
|
color ,green "[[:space:]]+$"
|