blob: b52262020a812534aa8c88b86320ecf160a0ab99 [file] [log] [blame]
Benno Schulenberg682c1d02014-03-30 21:04:58 +00001## Colouring for Changelogs.
Benno Schulenbergfe9da942014-05-16 20:21:34 +00002
Benno Schulenberg8347d022014-04-13 15:57:05 +00003syntax "changelog" "Change[Ll]og.*"
Benno Schulenberg682c1d02014-03-30 21:04:58 +00004
5# Author lines.
6color green "^(19|20).*$"
7# Dates.
Benno Schulenberg8347d022014-04-13 15:57:05 +00008color red "^(19|20)[0-9-]{8}"
Benno Schulenberg682c1d02014-03-30 21:04:58 +00009# Email addresses.
10color yellow "<[^>]*@[^>]*>"
11
Benno Schulenberg8347d022014-04-13 15:57:05 +000012# Command-line options.
13color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+"
Benno Schulenberge683e322015-03-28 19:56:41 +000014# Bug and patch numbers.
Mike Frysinger111b3002016-04-12 15:20:30 -040015color cyan "(BZ|bug|patch) #[0-9]+" "PR [[:alnum:]]+/[0-9]+"
Benno Schulenberg43101392015-06-20 08:44:31 +000016# Probable constants, for variety.
Benno Schulenbergfe9da942014-05-16 20:21:34 +000017color brightred "\<[A-Z_][0-9A-Z_]+\>"
Benno Schulenberg8347d022014-04-13 15:57:05 +000018# Key sequences.
Benno Schulenberg7b74fed2016-01-31 13:20:40 +000019color brightblue "\^[A-Z^\]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space"
Benno Schulenberg8347d022014-04-13 15:57:05 +000020
Benno Schulenberge683e322015-03-28 19:56:41 +000021# Changed files.
Benno Schulenberg43101392015-06-20 08:44:31 +000022color magenta start="^( | {8})\* " end="(:( |$)|^$)"
23
24# Release markers.
25color brightblue "^(GNU )?nano[- ][0-9]\.[0-9]\.[^ ]+"
Benno Schulenberge683e322015-03-28 19:56:41 +000026
Benno Schulenberg682c1d02014-03-30 21:04:58 +000027# Trailing whitespace.
28color ,green "[[:space:]]+$"