more comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3572 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey 2006-05-26 11:58:37 +00:00
parent 3c780e1d10
commit 2ef7dae971

View File

@ -2347,13 +2347,14 @@ void edit_draw(const filestruct *fileptr, const char *converted, int
/* We increment k by rm_eo, to move past the end of the /* We increment k by rm_eo, to move past the end of the
* last match. Even though two matches may overlap, we * last match. Even though two matches may overlap, we
* want to ignore them, so that we can highlight * want to ignore them, so that we can highlight e.g. C
* C-strings correctly. */ * strings correctly. */
while (k < endpos) { while (k < endpos) {
/* Note the fifth parameter to regexec(). It says /* Note the fifth parameter to regexec(). It says
* not to match the beginning-of-line character * not to match the beginning-of-line character
* unless k is 0. If regexec() returns REG_NOMATCH, * unless k is zero. If regexec() returns
* there are no more matches in the line. */ * REG_NOMATCH, there are no more matches in the
* line. */
if (regexec(tmpcolor->start, &fileptr->data[k], 1, if (regexec(tmpcolor->start, &fileptr->data[k], 1,
&startmatch, (k == 0) ? 0 : REG_NOTBOL) == &startmatch, (k == 0) ? 0 : REG_NOTBOL) ==
REG_NOMATCH) REG_NOMATCH)