From: David Lawrence Ramsey Date: Thu, 1 Jun 2006 18:35:39 +0000 (+0000) Subject: move the nanorc regexes to a separate file too X-Git-Tag: v1.3.12~73 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e4157968fbcfe94e8d3482fb0ba8a1d0e70b61ab;p=nano.git 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 --- diff --git a/ChangeLog b/ChangeLog index 5df83e5f..48c6a506 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/doc/nanorc.sample.in b/doc/nanorc.sample.in index 964a9e59..90566929 100644 --- a/doc/nanorc.sample.in +++ b/doc/nanorc.sample.in @@ -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" diff --git a/doc/syntax/Makefile.am b/doc/syntax/Makefile.am index 82a648ba..96150a30 100644 --- a/doc/syntax/Makefile.am +++ b/doc/syntax/Makefile.am @@ -5,6 +5,7 @@ pkgdata_DATA = asm.nanorc \ java.nanorc \ man.nanorc \ mutt.nanorc \ + nanorc.nanorc \ patch.nanorc \ perl.nanorc \ python.nanorc \ diff --git a/doc/syntax/nanorc.nanorc b/doc/syntax/nanorc.nanorc new file mode 100644 index 00000000..c534ad5e --- /dev/null +++ b/doc/syntax/nanorc.nanorc @@ -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:]]*#.*$"