From: David Lawrence Ramsey Date: Sun, 21 May 2006 17:51:54 +0000 (+0000) Subject: in nanorc.sample, further simplify the "groff" regexes X-Git-Tag: v1.3.12~142 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=124978a5bcc7f2258099aa8aede4ce92e3900423;p=nano.git in nanorc.sample, further simplify the "groff" regexes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3538 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 7ba7b42c..74866dd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -343,6 +343,7 @@ CVS code - - Remove unneeded foreground color for the Java source regex used to highlight trailing whitespace, since we now support background colors without foreground colors. (DLR) + - Further simplify the "groff" regexes. (DLR) - src/Makefile.am: - If we're uninstalling, remove the "rnano" symlink. (DLR, found by Benno Schulenberg) diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 12f41a00..beb24ee5 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -247,27 +247,22 @@ ## Here is an example for groff. ## -# syntax "groff" "\.m[ems]$" "\.tmac$" "^tmac." ".rof" -## The argument of .nr or .ds -# color cyan "^\.ds [^[[:space:]]]*" -# color cyan "^\.nr [^[[:space:]]]*" +# syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." +## The argument of .ds or .nr +# color cyan "^\.(ds|nr) [^[[:space:]]]*" ## Single character escapes # color brightmagenta "\\." ## Highlight the argument of \f or \s in the same color -# color brightmagenta "\\f." -# color brightmagenta "\\f\(.." -# color brightmagenta "\\s(\+|\-)?[0-9]" +# color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" ## \n -# color cyan "(\\|\\\\)n." -# color cyan "(\\|\\\\)n\(.." +# color cyan "(\\|\\\\)n(.|\(..)" # color cyan start="(\\|\\\\)n\[" end="]" ## Requests # color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" ## Comments # color yellow "^\.\\".*$" ## Strings -# color green "(\\|\\\\)\*." -# color green "(\\|\\\\)\*\(.." +# color green "(\\|\\\\)\*(.|\(..)" # color green start="(\\|\\\\)\*\[" end="]" ## Characters # color brightred "\\\(.."