Benno Schulenberg | 682c1d0 | 2014-03-30 21:04:58 +0000 | [diff] [blame] | 1 | ## Colouring for Changelogs. |
Benno Schulenberg | fe9da94 | 2014-05-16 20:21:34 +0000 | [diff] [blame] | 2 | |
Benno Schulenberg | 8347d02 | 2014-04-13 15:57:05 +0000 | [diff] [blame] | 3 | syntax "changelog" "Change[Ll]og.*" |
Benno Schulenberg | 682c1d0 | 2014-03-30 21:04:58 +0000 | [diff] [blame] | 4 | |
| 5 | # Author lines. |
| 6 | color green "^(19|20).*$" |
| 7 | # Dates. |
Benno Schulenberg | 8347d02 | 2014-04-13 15:57:05 +0000 | [diff] [blame] | 8 | color red "^(19|20)[0-9-]{8}" |
Benno Schulenberg | 682c1d0 | 2014-03-30 21:04:58 +0000 | [diff] [blame] | 9 | # Email addresses. |
| 10 | color yellow "<[^>]*@[^>]*>" |
| 11 | |
Benno Schulenberg | 8347d02 | 2014-04-13 15:57:05 +0000 | [diff] [blame] | 12 | # Command-line options. |
| 13 | color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+" |
Benno Schulenberg | e683e32 | 2015-03-28 19:56:41 +0000 | [diff] [blame] | 14 | # Bug and patch numbers. |
Mike Frysinger | 111b300 | 2016-04-12 15:20:30 -0400 | [diff] [blame] | 15 | color cyan "(BZ|bug|patch) #[0-9]+" "PR [[:alnum:]]+/[0-9]+" |
Benno Schulenberg | 4310139 | 2015-06-20 08:44:31 +0000 | [diff] [blame] | 16 | # Probable constants, for variety. |
Benno Schulenberg | fe9da94 | 2014-05-16 20:21:34 +0000 | [diff] [blame] | 17 | color brightred "\<[A-Z_][0-9A-Z_]+\>" |
Benno Schulenberg | 8347d02 | 2014-04-13 15:57:05 +0000 | [diff] [blame] | 18 | # Key sequences. |
Benno Schulenberg | 7b74fed | 2016-01-31 13:20:40 +0000 | [diff] [blame] | 19 | color brightblue "\^[A-Z^\]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space" |
Benno Schulenberg | 8347d02 | 2014-04-13 15:57:05 +0000 | [diff] [blame] | 20 | |
Benno Schulenberg | e683e32 | 2015-03-28 19:56:41 +0000 | [diff] [blame] | 21 | # Changed files. |
Benno Schulenberg | 4310139 | 2015-06-20 08:44:31 +0000 | [diff] [blame] | 22 | color magenta start="^( | {8})\* " end="(:( |$)|^$)" |
| 23 | |
| 24 | # Release markers. |
| 25 | color brightblue "^(GNU )?nano[- ][0-9]\.[0-9]\.[^ ]+" |
Benno Schulenberg | e683e32 | 2015-03-28 19:56:41 +0000 | [diff] [blame] | 26 | |
Benno Schulenberg | 682c1d0 | 2014-03-30 21:04:58 +0000 | [diff] [blame] | 27 | # Trailing whitespace. |
| 28 | color ,green "[[:space:]]+$" |