commit 2ef7dae97103e050fb85e464923b4493d61fe53d
parent 3c780e1d10ff9d389f282d1dbceae76f2f19d65f
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 26 May 2006 11:58:37 +0000
more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3572 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -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
* last match. Even though two matches may overlap, we
- * want to ignore them, so that we can highlight
- * C-strings correctly. */
+ * want to ignore them, so that we can highlight e.g. C
+ * strings correctly. */
while (k < endpos) {
/* Note the fifth parameter to regexec(). It says
* not to match the beginning-of-line character
- * unless k is 0. If regexec() returns REG_NOMATCH,
- * there are no more matches in the line. */
+ * unless k is zero. If regexec() returns
+ * REG_NOMATCH, there are no more matches in the
+ * line. */
if (regexec(tmpcolor->start, &fileptr->data[k], 1,
&startmatch, (k == 0) ? 0 : REG_NOTBOL) ==
REG_NOMATCH)