From 32263ede864880366c25ee6d5353f8c43e4d9c29 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sun, 3 Jul 2005 22:00:29 +0000 Subject: [PATCH] add Mike Frysinger's Bourne shell script regexes, with a few minor tweaks git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2811 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ doc/nanorc.sample | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index e4e88ecb..45f6b9e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,9 @@ CVS code - do_replace() - Blank out last_replace properly again just before displaying the "Replace" prompt. (DLR, found by Mike Frysinger) + doc/nanorc.sample: + - Add regexes for Bourne shell scripts. (Mike Frysinger, minor + tweaks by DLR) GNU nano 1.3.8 - 2005.06.30 - General: diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 50538f40..7a0b5ad5 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -297,6 +297,19 @@ # color brightblue "//.*" # color brightblue start="/\*" end="\*/" +## Here is an example for Bourne shell scripts +## +# syntax "shellscript" "\.sh$" +# icolor brightgreen "^[_A-Z0-9]+\(\)" +# color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +# color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +# color green "-(L|d|e|f|g|r|u|w|x)\>" +# color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +# color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +# icolor brightred "\$\{?[_A-Z0-9]+\}?" +# color yellow "#.*$" +# color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" + ## Here is an example for your .nanorc ## # syntax "nanorc" "(\.|/|)nanorc$" -- 2.39.5