diff --git a/ChangeLog b/ChangeLog index 7ba7b42c39004409c49269c185e614e3d109c02b..74866dd0285d9738b15a65aa067d66bfc2b87313 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 12f41a00089256c842583a5564b91f065c41e9d8..beb24ee5154bd94af521996419832c6818037624 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 "\\\(.."