move the nanorc regexes to a separate file too

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3607 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-06-01 18:35:39 +00:00
parent cf876d5396
commit e4157968fb
4 changed files with 24 additions and 21 deletions

View File

@ -129,12 +129,12 @@ CVS code -
doc/syntax/asm.nanorc, doc/syntax/c.nanorc,
doc/syntax/groff.nanorc, doc/syntax/html.nanorc,
doc/syntax/java.nanorc, doc/syntax/man.nanorc,
doc/syntax/mutt.nanorc, doc/syntax/patch.nanorc,
doc/syntax/perl.nanorc, doc/syntax/python.nanorc,
doc/syntax/ruby.nanorc, doc/syntax/sh.nanorc, and
doc/syntax/tex.nanorc; changes to configure.ac, nano.spec.in,
doc/Makefile.am, and m4/Makefile.am; removal of
doc/nanorc.sample. (DLR)
doc/syntax/mutt.nanorc, doc/syntax/nanorc.nanorc,
doc/syntax/patch.nanorc, doc/syntax/perl.nanorc,
doc/syntax/python.nanorc, doc/syntax/ruby.nanorc,
doc/syntax/sh.nanorc, and doc/syntax/tex.nanorc; changes to
configure.ac, nano.spec.in, doc/Makefile.am, and
m4/Makefile.am; removal of doc/nanorc.sample. (DLR)
- browser.c:
do_browser()
- Reference NANO_GOTODIR_(ALT|F)?KEY instead of

View File

@ -208,21 +208,8 @@
##
## All regexes should be extended regular expressions.
## Here is an example for your .nanorc.
##
# syntax "nanorc" "\.?nanorc$"
## Possible errors and parameters
# icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
## Keywords
# icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace|wordbounds)\>"
# icolor green "^[[:space:]]*(set|unset|include|syntax)\>"
## Colors
# icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
# icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
## Strings
# icolor white ""(\\.|[^"])*""
## Comments
# icolor brightblue "^[[:space:]]*#.*$"
## Nanorc files
# include "@PKGDATADIR@/nanorc.nanorc"
## C/C++
# include "@PKGDATADIR@/c.nanorc"

View File

@ -5,6 +5,7 @@ pkgdata_DATA = asm.nanorc \
java.nanorc \
man.nanorc \
mutt.nanorc \
nanorc.nanorc \
patch.nanorc \
perl.nanorc \
python.nanorc \

15
doc/syntax/nanorc.nanorc Normal file
View File

@ -0,0 +1,15 @@
## Here is an example for nanorc files.
##
syntax "nanorc" "\.?nanorc$"
## Possible errors and parameters
icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
## Keywords
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace|wordbounds)\>"
icolor green "^[[:space:]]*(set|unset|include|syntax)\>"
## Colors
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
## Strings
icolor white ""(\\.|[^"])*""
## Comments
icolor brightblue "^[[:space:]]*#.*$"