From 682c1d0d84e8aba2899736f0a8f83f204c59f9c2 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 30 Mar 2014 21:04:58 +0000 Subject: [PATCH] First attemp at colouring Changelog files. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4697 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ doc/syntax/changelog.nanorc | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 doc/syntax/changelog.nanorc diff --git a/ChangeLog b/ChangeLog index d3a1b6c0..e26cf976 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-03-30 Benno Schulenberg + * doc/syntax/changelog.nanorc: New file, first attemp at colouring + Changelog files. + 2014-03-30 Mike Frysinger * doc/Makefile.am, doc/man/Makefile.am, doc/man/fr/Makefile.am - The build already provides a standard htmldir for installing html diff --git a/doc/syntax/changelog.nanorc b/doc/syntax/changelog.nanorc new file mode 100644 index 00000000..99b46ca5 --- /dev/null +++ b/doc/syntax/changelog.nanorc @@ -0,0 +1,19 @@ +## Colouring for Changelogs. +## +syntax "changelog" "^Change[Ll]og" + +# Author lines. +color green "^(19|20).*$" +# Dates. +color red "^(19|20)[-0123456789]*" +# Email addresses. +color yellow "<[^>]*@[^>]*>" + +# Changed files. +color magenta "[[:space:]]\*[[:space:]].*:" + +# Probable variables, for variety. +color brightred "\<[A-Z_][0-9A-Z_]+\>" + +# Trailing whitespace. +color ,green "[[:space:]]+$" -- 2.39.5