add Mike Frysinger's sample regexes for patch files

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1868 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2004-07-28 13:03:06 +00:00
parent 331e659e98
commit 7d3817fb3e
2 changed files with 13 additions and 0 deletions

View File

@ -146,6 +146,8 @@ CVS code -
value can't be larger than COLS. (DLR) value can't be larger than COLS. (DLR)
- Allow the user to exit the help browser via Ctrl-C as well as - Allow the user to exit the help browser via Ctrl-C as well as
Ctrl-X, for consistency with the file browser. (DLR) Ctrl-X, for consistency with the file browser. (DLR)
- nanorc.sample:
- Add sample regexes for patch files. (Mike Frysinger)
GNU nano 1.3.3 - 2004.06.28 GNU nano 1.3.3 - 2004.06.28
- General: - General:

View File

@ -225,6 +225,17 @@
# color brightblue start="/\*\*" end="\*/" # color brightblue start="/\*\*" end="\*/"
# color brightgreen,green " +$" # color brightgreen,green " +$"
## Here is an example for patch files
##
# syntax "patch" "\.(patch|diff)$"
# color brightgreen "^\+.*"
# color green "^\+\+\+.*"
# color brightblue "^ .*"
# color brightred "^-.*"
# color red "^---.*"
# color brightyellow "^@@.*"
# color magenta "^diff.*"
## Here is an example for your .nanorc ## Here is an example for your .nanorc
## ##
#syntax "nanorc" "(\.|/|)nanorc$" #syntax "nanorc" "(\.|/|)nanorc$"