]> git.wh0rd.org Git - nano.git/commitdiff
add Mike Frysinger's Bourne shell script regexes, with a few minor
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 3 Jul 2005 22:00:29 +0000 (22:00 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 3 Jul 2005 22:00:29 +0000 (22:00 +0000)
tweaks

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2811 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/nanorc.sample

index e4e88ecb33d96813b316ba4f5d768b3e8675d64f..45f6b9e89b4bf6f018e6a4359ff5e63afffa455a 100644 (file)
--- 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:
index 50538f40fa12768c6e9a992cf720e20846448b07..7a0b5ad56380baed44d6d0b507a4eee3d0d8c54c 100644 (file)
 # 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$"