From de597bce927bb57e5aef0fe4c7e0233fa221cc0c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 8 Apr 2014 13:27:32 +0000 Subject: [PATCH] Correcting two comments, and tweaking two others. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4751 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ src/rcfile.c | 10 ++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8500dcfd..c235551f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-04-08 Benno Schulenberg + * src/rcfile.c: Correct two comments, and tweak two others. + 2014-04-08 David Lawrence Ramsey * src/nano.c (main): Convert the literal UTF-8 whitespace string into its corresponding byte sequence, and add a comment for it. diff --git a/src/rcfile.c b/src/rcfile.c index 317321e3..c583af87 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -113,7 +113,7 @@ static char *nanorc = NULL; static syntaxtype *endsyntax = NULL; /* The end of the list of syntaxes. */ static exttype *endheader = NULL; - /* End of header list */ + /* End of header list. */ static colortype *endcolor = NULL; /* The end of the color list for the current syntax. */ #endif @@ -377,9 +377,7 @@ void parse_syntax(char *ptr) } } - -/* Parse the next syntax string from the line at ptr, and add it to the - * global list of color syntaxes. */ +/* Parse the magic regex that may influence the choice of syntax. */ void parse_magictype(char *ptr) { #ifdef HAVE_LIBMAGIC @@ -848,14 +846,14 @@ void parse_colors(char *ptr, bool icase) newcolor->end_regex = (nregcomp(fgstr, icase ? REG_ICASE : 0)) ? mallocstrcpy(NULL, fgstr) : NULL; - /* Lame way to skip another static counter */ + /* Lame way to skip another static counter. */ newcolor->id = endsyntax->nmultis; endsyntax->nmultis++; } } } -/* Parse the headers (1st line) of the file which may influence the regex used. */ +/* Parse the header-line regex that may influence the choice of syntax. */ void parse_headers(char *ptr) { char *regstr; -- 2.39.5