From 5516da7e242879fe11a8a716411b859913c755d6 Mon Sep 17 00:00:00 2001 From: Ondrej Esler Date: Tue, 3 Apr 2018 22:49:51 +0200 Subject: [PATCH] add syntax highlight for svn commit file --- nanorc | 1 + svn.nanorc | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 svn.nanorc diff --git a/nanorc b/nanorc index f987aa1..225cb7c 100644 --- a/nanorc +++ b/nanorc @@ -67,6 +67,7 @@ include "~/.nano/sed.nanorc" include "~/.nano/sh.nanorc" include "~/.nano/sls.nanorc" include "~/.nano/sql.nanorc" +include "~/.nano/svn.nanorc" include "~/.nano/swift.nanorc" include "~/.nano/systemd.nanorc" include "~/.nano/tcl.nanorc" diff --git a/svn.nanorc b/svn.nanorc new file mode 100644 index 0000000..c2f89ab --- /dev/null +++ b/svn.nanorc @@ -0,0 +1,14 @@ +syntax "svn-commit" "svn-commit(\.[[:digit:]]+)?\.tmp$" + +# commit message +color yellow ".*" + +# ignore after line EDITOR_EOF_PREFIX (see svn/util.c) +color brightblack "^--.+--$" + +# files changes +color white "^[ADM_](M|[[:space:]])[[:space:]](\+|[[:space:]])[[:space:]].*" +color red "^D[[:space:]]{4}" +color green "^[M_](M|[[:space:]])[[:space:]]{3}" +color brightgreen "^A(M|[[:space:]])[[:space:]]{3}" +color brightblue "^A(M|[[:space:]])[[:space:]]\+[[:space:]]"