summaryrefslogtreecommitdiff
path: root/doc/syntax/changelog.nanorc
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-03-23 03:49:03 +0000
committer <>2015-03-25 17:06:51 +0000
commitfb040ea36cb8e2158ccd9100600652f94ae90af1 (patch)
treedba72a74e84a997c23fa0af7c07a4d831be2deb7 /doc/syntax/changelog.nanorc
parent8b74abeb02c01ddc768c465a826360cf33cec063 (diff)
downloadnano-tarball-fb040ea36cb8e2158ccd9100600652f94ae90af1.tar.gz
Imported from /home/lorry/working-area/delta_nano-tarball/nano-2.4.0.tar.gz.HEADnano-2.4.0master
Diffstat (limited to 'doc/syntax/changelog.nanorc')
-rw-r--r--doc/syntax/changelog.nanorc25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/syntax/changelog.nanorc b/doc/syntax/changelog.nanorc
new file mode 100644
index 0000000..60666bd
--- /dev/null
+++ b/doc/syntax/changelog.nanorc
@@ -0,0 +1,25 @@
+## Colouring for Changelogs.
+
+syntax "changelog" "Change[Ll]og.*"
+
+# Author lines.
+color green "^(19|20).*$"
+# Dates.
+color red "^(19|20)[0-9-]{8}"
+# Email addresses.
+color yellow "<[^>]*@[^>]*>"
+
+# Changed files.
+color magenta "[[:space:]]\*[[:space:]].*:"
+
+# Command-line options.
+color cyan "[[:space:]]-[a-zA-Z\$]" "--[8a-z-]+"
+# Bug numbers.
+color cyan "bug #[0-9]{5}"
+# Probable variables, for variety.
+color brightred "\<[A-Z_][0-9A-Z_]+\>"
+# Key sequences.
+color brightblue "\^[A-Z]" "\<M-." "\<F1?[0-9]" "(\^|M-)Space"
+
+# Trailing whitespace.
+color ,green "[[:space:]]+$"