From b8351c1c8bf07ba5b5634d0f5c07796a903a0eb7 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 27 Jun 2005 12:25:17 +0000 Subject: [PATCH] per Mike Frysinger's suggestion, in the "nanorc" regexes, put "^" back in the comment regex so that we don't match strings containing #'s anymore git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2777 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 33 +++++++++++++++------------------ doc/nanorc.sample | 2 +- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3965515..2634f184 100644 --- a/ChangeLog +++ b/ChangeLog @@ -362,21 +362,6 @@ CVS code - and put it back so that it isn't lost. This is especially needed if the keystroke is part of a multibyte character. (DLR) -- nanorc.sample: - - Add "cxx" and "hxx" to the list of extensions that the - "c-file" regexes apply to, and add "warning" and "error" to - them as well. (Mike Frysinger) - - Add regexes for assembler files. (Mike Frysinger) - - In the preprocessor directives regex string in the "c-file" - regexes, cover more whitespace characters than just " " by - using "[[:space:]]" instead. (Mike Frysinger) DLR: Extend - this to other regex strings whenever possible. - - Move some overly long split-up regex strings that cover - similar areas onto the same line. (DLR) - - Add GCC builtins to the "c-file" regexes. (Mike Frysinger) - - Simplify the file extension regex for groff. (DLR) - - Clarify and consolidate the descriptions of "fill" and - "tabsize". (DLR) - nano.1: - Clarify and consolidate the descriptions of --fill and --tabsize. (DLR) @@ -416,12 +401,24 @@ CVS code - - doc/nanorc.sample: - In the "nanorc" regexes, tweak the "color" regex to properly color a line that specifies a background color without a - foreground color, and update the associated comments. Also, - tweak the "comment" regex to color comments that don't start - at the beginning of a line. (DLR) + foreground color, and update the associated comments. (DLR) - Clarify descriptions of the characters that aren't allowed in the "punct" or "brackets" options. (DLR) - Update comment referring to --enable-extra. (DLR) + - Add "cxx" and "hxx" to the list of extensions that the + "c-file" regexes apply to, and add "warning" and "error" to + them as well. (Mike Frysinger) + - Add regexes for assembler files. (Mike Frysinger) + - In the preprocessor directives regex string in the "c-file" + regexes, cover more whitespace characters than just " " by + using "[[:space:]]" instead. (Mike Frysinger) DLR: Extend + this to other regex strings whenever possible. + - Move some overly long split-up regex strings that cover + similar areas onto the same line. (DLR) + - Add GCC builtins to the "c-file" regexes. (Mike Frysinger) + - Simplify the file extension regex for groff. (DLR) + - Clarify and consolidate the descriptions of "fill" and + "tabsize". (DLR) - Makefile.am, m4/Makefile.am: - Make sure that the files in EXTRA_DIST are in alphabetical order, and that the lines are wrapped at 72 characters. (DLR) diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 46bb5c23..50538f40 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -311,4 +311,4 @@ ## strings # icolor white "\"(\\.|[^\"])*\"" ## comments -# icolor blue "[[:space:]]*#.*$" +# icolor blue "^[[:space:]]*#.*$"